* bump client library to workaround #24530 * bump client library to workaround #24530 2/2 * bump client library to workaround #24530 * bump client library to workaround #24530 2/2 * bugfix: ghost devices cause TypeError: 'NoneType' object is not subscriptable * bugfix: broken HW zones cause AttributeError: 'GeniusZone' object has no attribute 'temperature' * delint
This commit is contained in:
1 parent
56155740fe
commit
ffce593cc8
4 files changed
+8
-4
No files matched your search
@@ -18,8 +18,9 @@ async def async_setup_platform(hass, config, async_add_entities,
|
||||
"""Set up the Genius Hub sensor entities."""
|
||||
client = hass.data[DOMAIN]['client']
|
||||
|
||||
devices = [d for d in client.hub.device_objs if d.type is not None]
|
||||
switches = [GeniusBinarySensor(client, d)
|
||||
for d in client.hub.device_objs if d.type[:21] in GH_IS_SWITCH]
|
||||
for d in devices if d.type[:21] in GH_IS_SWITCH]
|
||||
|
||||
async_add_entities(switches)
|
||||
|
||||
|
||||
Reference in new issue
Block a user