Fix errors, bump pyhon

This commit is contained in:
Andre Basche 2023-05-07 00:52:54 +02:00
parent 8aa8563b9b
commit 2802bcad25
10 changed files with 36 additions and 16 deletions

View file

@ -162,7 +162,7 @@ async def async_setup_entry(hass, entry: ConfigEntry, async_add_entities) -> Non
if descriptions := NUMBERS.get(device.appliance_type):
for description in descriptions:
if not device.settings.get(description.key):
if description.key not in device.available_settings:
continue
appliances.extend(
[HonNumberEntity(hass, coordinator, entry, device, description)]