Skip to content

Commit

Permalink
Remove useless warning, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed May 7, 2023
1 parent dae8b48 commit 0e9bd97
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
3 changes: 0 additions & 3 deletions custom_components/hon/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 0 additions & 3 deletions custom_components/hon/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 0 additions & 4 deletions custom_components/hon/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0e9bd97

Please sign in to comment.