forked from home-assistant/core
Fix Fritz default consider home value (#52648)
This commit is contained in:
committed by
Franck Nijhof
parent
5185fa75d3
commit
84be418bf1
@@ -195,12 +195,13 @@ class FritzBoxTools:
|
|||||||
"""Scan for new devices and return a list of found device ids."""
|
"""Scan for new devices and return a list of found device ids."""
|
||||||
_LOGGER.debug("Checking devices for FRITZ!Box router %s", self.host)
|
_LOGGER.debug("Checking devices for FRITZ!Box router %s", self.host)
|
||||||
|
|
||||||
|
_default_consider_home = DEFAULT_CONSIDER_HOME.total_seconds()
|
||||||
if self._options:
|
if self._options:
|
||||||
consider_home = self._options.get(
|
consider_home = self._options.get(
|
||||||
CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME.total_seconds()
|
CONF_CONSIDER_HOME, _default_consider_home
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
consider_home = DEFAULT_CONSIDER_HOME
|
consider_home = _default_consider_home
|
||||||
|
|
||||||
new_device = False
|
new_device = False
|
||||||
for known_host in self._update_info():
|
for known_host in self._update_info():
|
||||||
|
Reference in New Issue
Block a user