Skip to content

Commit

Permalink
Fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed Mar 18, 2024
1 parent 38a67ad commit 20d467a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/python_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 2 additions & 3 deletions custom_components/hon/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,8 @@ def __init__(
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()
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"requirements": [
"pyhOn==0.16.1"
],
"version": "0.13.1"
"version": "0.14.0-beta.1"
}
6 changes: 3 additions & 3 deletions custom_components/hon/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Haier hOn",
"homeassistant": "2024.1.0",
"homeassistant": "2024.2.0",
"zip_release": true,
"filename": "haier_hon.zip"
}

0 comments on commit 20d467a

Please sign in to comment.