Skip to content

Commit

Permalink
Fix missing entities #34
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed May 8, 2023
1 parent a5c7b99 commit 44794c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"documentation": "https://github.com/Andre0512/hon/",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/Andre0512/hon/issues",
"requirements": ["pyhOn==0.10.4"],
"version": "0.7.1"
"requirements": ["pyhOn==0.10.6"],
"version": "0.7.2"
}
2 changes: 2 additions & 0 deletions custom_components/hon/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
if (
device.get(description.key) is not None
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(
[HonSwitchEntity(hass, coordinator, entry, device, description)]
Expand Down

0 comments on commit 44794c3

Please sign in to comment.