From 44794c35ca9be8260cd9f6f6b0033e5f359b95ea Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Mon, 8 May 2023 02:35:54 +0200 Subject: [PATCH] Fix missing entities #34 --- custom_components/hon/manifest.json | 4 ++-- custom_components/hon/switch.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index 28ead90..d8e8893 100644 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -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" } diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 671572c..25bd1cc 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -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)]