mirror of
https://github.com/Andre0512/hon.git
synced 2024-11-13 18:50:47 +01:00
Remove useless warning, bump version
This commit is contained in:
parent
dae8b48075
commit
0e9bd97c7b
@ -223,9 +223,6 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
|
|||||||
if descriptions := BINARY_SENSORS.get(device.appliance_type):
|
if descriptions := BINARY_SENSORS.get(device.appliance_type):
|
||||||
for description in descriptions:
|
for description in descriptions:
|
||||||
if not device.get(description.key):
|
if not device.get(description.key):
|
||||||
_LOGGER.warning(
|
|
||||||
"[%s] Can't setup %s", device.appliance_type, description.key
|
|
||||||
)
|
|
||||||
continue
|
continue
|
||||||
appliances.extend(
|
appliances.extend(
|
||||||
[
|
[
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"issue_tracker": "https://github.com/Andre0512/hon/issues",
|
"issue_tracker": "https://github.com/Andre0512/hon/issues",
|
||||||
"requirements": ["pyhOn==0.10.3"],
|
"requirements": ["pyhOn==0.10.3"],
|
||||||
"version": "0.7.0-beta.8"
|
"version": "0.7.0"
|
||||||
}
|
}
|
||||||
|
@ -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(
|
if not device.get(description.key) and not device.settings.get(
|
||||||
description.key
|
description.key
|
||||||
):
|
):
|
||||||
_LOGGER.warning(
|
|
||||||
"[%s] Can't setup %s", device.appliance_type, description.key
|
|
||||||
)
|
|
||||||
continue
|
continue
|
||||||
appliances.extend(
|
appliances.extend(
|
||||||
[HonSensorEntity(hass, coordinator, entry, device, description)]
|
[HonSensorEntity(hass, coordinator, entry, device, description)]
|
||||||
|
@ -318,10 +318,6 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
|
|||||||
appliances.extend(
|
appliances.extend(
|
||||||
[HonSwitchEntity(hass, coordinator, entry, device, description)]
|
[HonSwitchEntity(hass, coordinator, entry, device, description)]
|
||||||
)
|
)
|
||||||
else:
|
|
||||||
_LOGGER.warning(
|
|
||||||
"[%s] Can't setup %s", device.appliance_type, description.key
|
|
||||||
)
|
|
||||||
|
|
||||||
async_add_entities(appliances)
|
async_add_entities(appliances)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user