skip non existing zones (#23113)
parent
9e15fc1376
commit
4d080f8b17
|
@ -27,7 +27,8 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
|||
if zones:
|
||||
async_add_entities([
|
||||
DaikinZoneSwitch(daikin_api, zone_id)
|
||||
for zone_id in range(len(zones))
|
||||
for zone_id, name in enumerate(zones)
|
||||
if name != '-'
|
||||
])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue