Prevent device tracker error

This commit is contained in:
Paulus Schoutsen committed 2016-04-10 17:35:33 -07:00
1 parent a862e994c7
commit 197388a9b2
1 file changed
+1 -1
@@ -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,