mirror of
https://github.com/Andre0512/hon.git
synced 2024-12-22 02:35:32 +00:00
Fix checks
This commit is contained in:
parent
38a67ad64c
commit
20d467a2d5
2
.github/workflows/python_check.yml
vendored
2
.github/workflows/python_check.yml
vendored
|
@ -14,8 +14,6 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- home-assistant: "2024.1.0"
|
|
||||||
python-version: "3.11"
|
|
||||||
- home-assistant: "2024.2.0"
|
- home-assistant: "2024.2.0"
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- home-assistant: "2024.2.0"
|
- home-assistant: "2024.2.0"
|
||||||
|
|
|
@ -298,9 +298,8 @@ class HonClimateEntity(HonEntity, ClimateEntity):
|
||||||
super().__init__(hass, entry, device, description)
|
super().__init__(hass, entry, device, description)
|
||||||
|
|
||||||
self._attr_supported_features = (
|
self._attr_supported_features = (
|
||||||
ClimateEntityFeature.TURN_ON
|
ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
| ClimateEntityFeature.TARGET_TEMPERATURE
|
)
|
||||||
)
|
|
||||||
|
|
||||||
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
|
self._attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||||
self._set_temperature_bound()
|
self._set_temperature_bound()
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pyhOn==0.16.1"
|
"pyhOn==0.16.1"
|
||||||
],
|
],
|
||||||
"version": "0.13.1"
|
"version": "0.14.0-beta.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -414,9 +414,9 @@ async def async_setup_entry(
|
||||||
entity = HonConfigSwitchEntity(hass, entry, device, description)
|
entity = HonConfigSwitchEntity(hass, entry, device, description)
|
||||||
elif isinstance(description, HonControlSwitchEntityDescription):
|
elif isinstance(description, HonControlSwitchEntityDescription):
|
||||||
if not (
|
if not (
|
||||||
device.get(description.key) is not None
|
device.get(description.key) is not None
|
||||||
or description.turn_on_key in list(device.commands)
|
or description.turn_on_key in list(device.commands)
|
||||||
or description.turn_off_key in list(device.commands)
|
or description.turn_off_key in list(device.commands)
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
entity = HonControlSwitchEntity(hass, entry, device, description)
|
entity = HonControlSwitchEntity(hass, entry, device, description)
|
||||||
|
|
Loading…
Reference in a new issue