From 0e9bd97c7b45d19c829e9639fadd397175823fa7 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 7 May 2023 13:53:05 +0200 Subject: [PATCH] Remove useless warning, bump version --- custom_components/hon/binary_sensor.py | 3 --- custom_components/hon/manifest.json | 2 +- custom_components/hon/sensor.py | 3 --- custom_components/hon/switch.py | 4 ---- 4 files changed, 1 insertion(+), 11 deletions(-) diff --git a/custom_components/hon/binary_sensor.py b/custom_components/hon/binary_sensor.py index a04bd80..95dde48 100644 --- a/custom_components/hon/binary_sensor.py +++ b/custom_components/hon/binary_sensor.py @@ -223,9 +223,6 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non if descriptions := BINARY_SENSORS.get(device.appliance_type): for description in descriptions: if not device.get(description.key): - _LOGGER.warning( - "[%s] Can't setup %s", device.appliance_type, description.key - ) continue appliances.extend( [ diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index 8713a73..ec140c2 100644 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -7,5 +7,5 @@ "iot_class": "cloud_polling", "issue_tracker": "https://github.com/Andre0512/hon/issues", "requirements": ["pyhOn==0.10.3"], - "version": "0.7.0-beta.8" + "version": "0.7.0" } diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index 9f48d77..83a2244 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -520,9 +520,6 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non if not device.get(description.key) and not device.settings.get( description.key ): - _LOGGER.warning( - "[%s] Can't setup %s", device.appliance_type, description.key - ) continue appliances.extend( [HonSensorEntity(hass, coordinator, entry, device, description)] diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index ea1a88f..d711a13 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -318,10 +318,6 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non appliances.extend( [HonSwitchEntity(hass, coordinator, entry, device, description)] ) - else: - _LOGGER.warning( - "[%s] Can't setup %s", device.appliance_type, description.key - ) async_add_entities(appliances)