mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
was getting errors for NETWORK being None. looked like it was being loaded too early, so this will wait until it's ready
This commit is contained in:
parent
27bc4c582b
commit
80e829f53a
@ -48,7 +48,8 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
if discovery_info is None:
|
||||
return
|
||||
dev = list()
|
||||
NETWORK.update()
|
||||
while NETWORK is None:
|
||||
continue
|
||||
for name, data in NETWORK.ecobee.sensors.items():
|
||||
if 'temp' in data:
|
||||
dev.append(EcobeeSensor(name, 'temperature'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user