mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
@@ -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))
|
||||||
|
Reference in New Issue
Block a user