Prevent device tracker error

pull/1790/head^2
Paulus Schoutsen 2016-04-10 17:35:10 -07:00
parent a862e994c7
commit 197388a9b2
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def setup(hass, config):
yaml_path = hass.config.path(YAML_DEVICES)
conf = config.get(DOMAIN, {})
if isinstance(conf, list):
if isinstance(conf, list) and len(conf) > 0:
conf = conf[0]
consider_home = timedelta(
seconds=util.convert(conf.get(CONF_CONSIDER_HOME), int,