From fade2e991b9ec9666d4cffb4e9def07f60f8a07a Mon Sep 17 00:00:00 2001 From: tyjtyj Date: Sun, 1 Sep 2019 16:24:54 +0800 Subject: [PATCH] Fix google_maps scan interval (#26328) Reported on https://github.com/home-assistant/home-assistant/issues/26275 --- homeassistant/components/google_maps/device_tracker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/google_maps/device_tracker.py b/homeassistant/components/google_maps/device_tracker.py index 2149e40e504..2b5550860ee 100644 --- a/homeassistant/components/google_maps/device_tracker.py +++ b/homeassistant/components/google_maps/device_tracker.py @@ -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)