was getting errors for NETWORK being None. looked like it was being loaded too early, so this will wait until it's ready

pull/635/head
nkgilley@gmail.com 2015-11-23 11:52:02 -05:00
parent 27bc4c582b
commit 80e829f53a
1 changed files with 2 additions and 1 deletions

View File

@ -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'))