Fix google_maps scan interval (#26328)

Reported on 
https://github.com/home-assistant/home-assistant/issues/26275
pull/26332/head
tyjtyj 2019-09-01 16:24:54 +08:00 committed by Martin Hjelmare
parent b31fde6255
commit fade2e991b
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class GoogleMapsScanner:
self.see = see
self.username = config[CONF_USERNAME]
self.max_gps_accuracy = config[CONF_MAX_GPS_ACCURACY]
self.scan_interval = config.get(CONF_SCAN_INTERVAL) or timedelta(60)
self.scan_interval = config.get(CONF_SCAN_INTERVAL) or timedelta(seconds=60)
credfile = "{}.{}".format(
hass.config.path(CREDENTIALS_FILE), slugify(self.username)