mirror of
https://github.com/Andre0512/hon.git
synced 2024-12-22 10:45:30 +00:00
Fix missing entities #34
This commit is contained in:
parent
a5c7b99569
commit
44794c35ca
|
@ -6,6 +6,6 @@
|
||||||
"documentation": "https://github.com/Andre0512/hon/",
|
"documentation": "https://github.com/Andre0512/hon/",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"issue_tracker": "https://github.com/Andre0512/hon/issues",
|
"issue_tracker": "https://github.com/Andre0512/hon/issues",
|
||||||
"requirements": ["pyhOn==0.10.4"],
|
"requirements": ["pyhOn==0.10.6"],
|
||||||
"version": "0.7.1"
|
"version": "0.7.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,6 +326,8 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
|
||||||
if (
|
if (
|
||||||
device.get(description.key) is not None
|
device.get(description.key) is not None
|
||||||
or description.key in device.available_settings
|
or description.key in device.available_settings
|
||||||
|
or description.turn_on_key in list(device.commands)
|
||||||
|
or description.turn_off_key in list(device.commands)
|
||||||
):
|
):
|
||||||
appliances.extend(
|
appliances.extend(
|
||||||
[HonSwitchEntity(hass, coordinator, entry, device, description)]
|
[HonSwitchEntity(hass, coordinator, entry, device, description)]
|
||||||
|
|
Loading…
Reference in a new issue