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)]