1
0
mirror of https://github.com/elisspace/core.git synced 2026-09-01 08:53:56 +00:00
Files
core/homeassistant
Chao b64ac5be85 fix issue setting scan_interval (#26165)
I was getting the following error when i set the scan_interval
```
    self.scan_interval = timedelta(seconds=config.get(CONF_SCAN_INTERVAL, 60))
TypeError: unsupported type for timedelta seconds component: datetime.timedelta
```
it turns out `config.get(CONF_SCAN_INTERVAL)` already returns `timedelta`

```('scan_interval', datetime.timedelta(seconds=180))```
2019-08-25 22:37:27 -07:00
..
2019-08-20 21:43:50 +02:00
2019-07-31 12:25:30 -07:00
2019-08-22 15:09:26 -07:00
2019-08-20 21:43:50 +02:00
2019-07-31 12:25:30 -07:00
2019-07-31 12:25:30 -07:00
2019-07-31 12:25:30 -07:00