Fixed bug with devices not being discovered correctly. (#9311)

This commit is contained in:
Mister Wil 2017-09-06 09:11:32 -07:00 committed by Paulus Schoutsen
parent fad914de8c
commit 894200d87d

View File

@ -52,7 +52,8 @@ def setup(hass, config):
password = conf.get(CONF_PASSWORD)
try:
hass.data[DATA_ABODE] = abode = abodepy.Abode(username, password)
hass.data[DATA_ABODE] = abode = abodepy.Abode(
username, password, auto_login=True, get_devices=True)
except (ConnectTimeout, HTTPError) as ex:
_LOGGER.error("Unable to connect to Abode: %s", str(ex))