Skip to content

Commit

Permalink
Merge pull request #10 from PiotrMachowski/dev
Browse files Browse the repository at this point in the history
v1.0.5
  • Loading branch information
PiotrMachowski authored Feb 21, 2024
2 parents 7e64f3f + 7e2c7dd commit f11903f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 21 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/hacs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,8 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-python@v2
name: Setup Python
with:
python-version: '3.8.x'

- uses: actions/cache@v2
name: Cache
with:
path: |
~/.cache/pip
key: custom-component-ci

- name: HACS Action
uses: hacs/action@main
with:
CATEGORY: integration
CATEGORY: integration
ignore: brands
8 changes: 4 additions & 4 deletions custom_components/hydro_imgw/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"domain": "hydro_imgw",
"name": "Hydro IMGW",
"codeowners": ["@PiotrMachowski"],
"dependencies": [],
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Hydro-IMGW",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Hydro-IMGW/issues",
"dependencies": [],
"codeowners": ["@PiotrMachowski"],
"requirements": ["requests"],
"version": "v1.0.4",
"iot_class": "cloud_polling"
"version": "v1.0.5"
}
4 changes: 2 additions & 2 deletions custom_components/hydro_imgw/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import voluptuous as vol

from homeassistant.components.sensor import (PLATFORM_SCHEMA, ENTITY_ID_FORMAT)
from homeassistant.const import CONF_NAME, LENGTH_CENTIMETERS
from homeassistant.const import CONF_NAME, UnitOfLength
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity import async_generate_entity_id

Expand Down Expand Up @@ -74,7 +74,7 @@ def extra_state_attributes(self):

@property
def unit_of_measurement(self):
return LENGTH_CENTIMETERS
return UnitOfLength.CENTIMETERS

def update(self):
address = 'https://hydro.imgw.pl/api/station/hydro/?id={}'.format(self._station_id)
Expand Down
2 changes: 0 additions & 2 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"name": "Hydro IMGW",
"render_readme": true,
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Hydro-IMGW",
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-Hydro-IMGW/issues",
"zip_release": true,
"filename": "hydro_imgw.zip"
}

0 comments on commit f11903f

Please sign in to comment.