parent
9f33b8f541
commit
8a04e1f5f4
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ def setup(hass, config):
|
||||||
os.remove(csv_path)
|
os.remove(csv_path)
|
||||||
|
|
||||||
conf = config.get(DOMAIN, {})
|
conf = config.get(DOMAIN, {})
|
||||||
|
if isinstance(conf, list):
|
||||||
|
conf = conf[0]
|
||||||
consider_home = timedelta(
|
consider_home = timedelta(
|
||||||
seconds=util.convert(conf.get(CONF_CONSIDER_HOME), int,
|
seconds=util.convert(conf.get(CONF_CONSIDER_HOME), int,
|
||||||
DEFAULT_CONSIDER_HOME))
|
DEFAULT_CONSIDER_HOME))
|
||||||
|
|
Loading…
Add table
Reference in a new issue