mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +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:
|
if discovery_info is None:
|
||||||
return
|
return
|
||||||
dev = list()
|
dev = list()
|
||||||
NETWORK.update()
|
while NETWORK is None:
|
||||||
|
continue
|
||||||
for name, data in NETWORK.ecobee.sensors.items():
|
for name, data in NETWORK.ecobee.sensors.items():
|
||||||
if 'temp' in data:
|
if 'temp' in data:
|
||||||
dev.append(EcobeeSensor(name, 'temperature'))
|
dev.append(EcobeeSensor(name, 'temperature'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user