forked from andrius/neohubapi
Check value and not just presense of TIMECLOCK and THERMOSTAT attributes.
This commit is contained in:
parent
ec92300199
commit
2fc8544a34
|
@ -334,8 +334,8 @@ class NeoHub:
|
|||
devices = hub_data.devices
|
||||
delattr(hub_data, "devices")
|
||||
|
||||
thermostat_list = list(filter(lambda device: hasattr(device, 'THERMOSTAT'), devices))
|
||||
timeclock_list = list(filter(lambda device: hasattr(device, 'TIMECLOCK'), devices))
|
||||
thermostat_list = list(filter(lambda device: hasattr(device, 'THERMOSTAT') and device.THERMOSTAT, devices))
|
||||
timeclock_list = list(filter(lambda device: hasattr(device, 'TIMECLOCK') and device.TIMECLOCK, devices))
|
||||
|
||||
thermostats = []
|
||||
timeclocks = []
|
||||
|
|
Loading…
Reference in New Issue