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: fail-fast: false matrix: include: - - home-assistant: "2024.1.0" - python-version: "3.11" - home-assistant: "2024.2.0" python-version: "3.11" - 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): super().__init__(hass, entry, device, description) self._attr_supported_features = ( - ClimateEntityFeature.TURN_ON - | ClimateEntityFeature.TARGET_TEMPERATURE - ) + ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TARGET_TEMPERATURE + ) self._attr_temperature_unit = UnitOfTemperature.CELSIUS 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 @@ "requirements": [ "pyhOn==0.16.1" ], - "version": "0.13.1" + "version": "0.14.0-beta.1" } 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( entity = HonConfigSwitchEntity(hass, entry, device, description) elif isinstance(description, HonControlSwitchEntityDescription): if not ( - device.get(description.key) is not None - or description.turn_on_key in list(device.commands) - or description.turn_off_key in list(device.commands) + device.get(description.key) is not None + or description.turn_on_key in list(device.commands) + or description.turn_off_key in list(device.commands) ): continue 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 @@ { "name": "Haier hOn", - "homeassistant": "2024.1.0", + "homeassistant": "2024.2.0", "zip_release": true, "filename": "haier_hon.zip" }