Core: Google Maps Location Sharing can't set scan_interval

Created on 12 Aug 2019  路  6Comments  路  Source: home-assistant/core

0.97.1

Attempt to set a scan_interval results in the following, if scan_interval is removed from config, component works as expected

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 77, in async_setup_legacy
    discovery_info,
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/google_maps/device_tracker.py", line 43, in setup_scanner
    scanner = GoogleMapsScanner(hass, config, see)
  File "/usr/src/homeassistant/homeassistant/components/google_maps/device_tracker.py", line 55, in __init__
    self.scan_interval = timedelta(seconds=config.get(CONF_SCAN_INTERVAL, 60))
TypeError: unsupported type for timedelta seconds component: datetime.timedelta
google_maps

Most helpful comment

Yes, this has been fixed

All 6 comments

same issue here on 97.2

Has https://github.com/home-assistant/home-assistant/pull/26165 fixed this? Can this issue be closed?

Yes, this has been fixed

@mcc05: could you please close this issue?

Happy to!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirichkov picture kirichkov  路  3Comments

Elmardus picture Elmardus  路  3Comments

piitaya picture piitaya  路  3Comments

TheZoker picture TheZoker  路  3Comments

i-am-shodan picture i-am-shodan  路  3Comments