diff options
author | Andre Basche <andre.basche@gmail.com> | 2023-05-07 13:53:05 +0200 |
---|---|---|
committer | Andre Basche <andre.basche@gmail.com> | 2023-05-07 13:53:05 +0200 |
commit | 0e9bd97c7b45d19c829e9639fadd397175823fa7 (patch) | |
tree | e1f5fe28dcad824837a0211bbed2cda6652b2f20 | |
parent | dae8b4807584022ddaeacb9e507749d5a3fe1a3d (diff) |
Remove useless warning, bump versionv0.7.0
-rw-r--r-- | custom_components/hon/binary_sensor.py | 3 | ||||
-rw-r--r-- | custom_components/hon/manifest.json | 2 | ||||
-rw-r--r-- | custom_components/hon/sensor.py | 3 | ||||
-rw-r--r-- | custom_components/hon/switch.py | 4 |
4 files changed, 1 insertions, 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 | |||
223 | if descriptions := BINARY_SENSORS.get(device.appliance_type): | 223 | if descriptions := BINARY_SENSORS.get(device.appliance_type): |
224 | for description in descriptions: | 224 | for description in descriptions: |
225 | if not device.get(description.key): | 225 | if not device.get(description.key): |
226 | _LOGGER.warning( | ||
227 | "[%s] Can't setup %s", device.appliance_type, description.key | ||
228 | ) | ||
229 | continue | 226 | continue |
230 | appliances.extend( | 227 | appliances.extend( |
231 | [ | 228 | [ |
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 @@ | |||
7 | "iot_class": "cloud_polling", | 7 | "iot_class": "cloud_polling", |
8 | "issue_tracker": "https://github.com/Andre0512/hon/issues", | 8 | "issue_tracker": "https://github.com/Andre0512/hon/issues", |
9 | "requirements": ["pyhOn==0.10.3"], | 9 | "requirements": ["pyhOn==0.10.3"], |
10 | "version": "0.7.0-beta.8" | 10 | "version": "0.7.0" |
11 | } | 11 | } |
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 | |||
520 | if not device.get(description.key) and not device.settings.get( | 520 | if not device.get(description.key) and not device.settings.get( |
521 | description.key | 521 | description.key |
522 | ): | 522 | ): |
523 | _LOGGER.warning( | ||
524 | "[%s] Can't setup %s", device.appliance_type, description.key | ||
525 | ) | ||
526 | continue | 523 | continue |
527 | appliances.extend( | 524 | appliances.extend( |
528 | [HonSensorEntity(hass, coordinator, entry, device, description)] | 525 | [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 | |||
318 | appliances.extend( | 318 | appliances.extend( |
319 | [HonSwitchEntity(hass, coordinator, entry, device, description)] | 319 | [HonSwitchEntity(hass, coordinator, entry, device, description)] |
320 | ) | 320 | ) |
321 | else: | ||
322 | _LOGGER.warning( | ||
323 | "[%s] Can't setup %s", device.appliance_type, description.key | ||
324 | ) | ||
325 | 321 | ||
326 | async_add_entities(appliances) | 322 | async_add_entities(appliances) |
327 | 323 | ||