mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
parent
9f33b8f541
commit
8a04e1f5f4
@ -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…
x
Reference in New Issue
Block a user