aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Basche <andre.basche@gmail.com>2024-03-18 01:16:18 +0100
committerAndre Basche <andre.basche@gmail.com>2024-03-18 01:19:49 +0100
commit20d467a2d51fa2461e1f341173ee81e971c09db0 (patch)
treef6abf7ad9d080281e5803dc5ac9a7860275a35d9
parent38a67ad64cb969cbc5c3777877f82066aa099ae3 (diff)
Fix checksv0.14.0-beta.1
-rw-r--r--.github/workflows/python_check.yml2
-rw-r--r--custom_components/hon/climate.py5
-rw-r--r--custom_components/hon/manifest.json2
-rw-r--r--custom_components/hon/switch.py6
-rw-r--r--hacs.json2
5 files changed, 7 insertions, 10 deletions
diff --git a/.github/workflows/python_check.yml b/.github/workflows/python_check.yml
index af01fe5..8438dcb 100644
--- a/.github/workflows/python_check.yml
+++ b/.github/workflows/python_check.yml
@@ -14,8 +14,6 @@ jobs:
14 fail-fast: false 14 fail-fast: false
15 matrix: 15 matrix:
16 include: 16 include:
17 - home-assistant: "2024.1.0"
18 python-version: "3.11"
19 - home-assistant: "2024.2.0" 17 - home-assistant: "2024.2.0"
20 python-version: "3.11" 18 python-version: "3.11"
21 - home-assistant: "2024.2.0" 19 - home-assistant: "2024.2.0"
diff --git a/custom_components/hon/climate.py b/custom_components/hon/climate.py
index 01e2c30..0d1a2ac 100644
--- a/custom_components/hon/climate.py
+++ b/custom_components/hon/climate.py
@@ -298,9 +298,8 @@ class HonClimateEntity(HonEntity, ClimateEntity):
298 super().__init__(hass, entry, device, description) 298 super().__init__(hass, entry, device, description)
299 299
300 self._attr_supported_features = ( 300 self._attr_supported_features = (
301 ClimateEntityFeature.TURN_ON 301 ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TARGET_TEMPERATURE
302 | ClimateEntityFeature.TARGET_TEMPERATURE 302 )
303 )
304 303
305 self._attr_temperature_unit = UnitOfTemperature.CELSIUS 304 self._attr_temperature_unit = UnitOfTemperature.CELSIUS
306 self._set_temperature_bound() 305 self._set_temperature_bound()
diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json
index 01c9138..ffe7d27 100644
--- a/custom_components/hon/manifest.json
+++ b/custom_components/hon/manifest.json
@@ -11,5 +11,5 @@
11 "requirements": [ 11 "requirements": [
12 "pyhOn==0.16.1" 12 "pyhOn==0.16.1"
13 ], 13 ],
14 "version": "0.13.1" 14 "version": "0.14.0-beta.1"
15} 15}
diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py
index f742b56..44480c5 100644
--- a/custom_components/hon/switch.py
+++ b/custom_components/hon/switch.py
@@ -414,9 +414,9 @@ async def async_setup_entry(
414 entity = HonConfigSwitchEntity(hass, entry, device, description) 414 entity = HonConfigSwitchEntity(hass, entry, device, description)
415 elif isinstance(description, HonControlSwitchEntityDescription): 415 elif isinstance(description, HonControlSwitchEntityDescription):
416 if not ( 416 if not (
417 device.get(description.key) is not None 417 device.get(description.key) is not None
418 or description.turn_on_key in list(device.commands) 418 or description.turn_on_key in list(device.commands)
419 or description.turn_off_key in list(device.commands) 419 or description.turn_off_key in list(device.commands)
420 ): 420 ):
421 continue 421 continue
422 entity = HonControlSwitchEntity(hass, entry, device, description) 422 entity = HonControlSwitchEntity(hass, entry, device, description)
diff --git a/hacs.json b/hacs.json
index 9687059..9716e90 100644
--- a/hacs.json
+++ b/hacs.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "Haier hOn", 2 "name": "Haier hOn",
3 "homeassistant": "2024.1.0", 3 "homeassistant": "2024.2.0",
4 "zip_release": true, 4 "zip_release": true,
5 "filename": "haier_hon.zip" 5 "filename": "haier_hon.zip"
6} 6}