hass-core/homeassistant
Chao 3deeac6bf7 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-23 10:14:18 -07:00
..
auth Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
components fix issue setting scan_interval (#26165) 2019-08-23 10:14:18 -07:00
generated GeoNet NZ Quakes feed integration (#25736) 2019-08-10 12:50:27 +02:00
helpers Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
scripts Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
util Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
__init__.py
__main__.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
bootstrap.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
config.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
config_entries.py Reload config entry when entity enabled in entity registry, remove entity if disabled. (#26120) 2019-08-22 19:32:43 -05:00
const.py Version bump to 0.98.0.dev0 2019-07-31 16:22:05 -07:00
core.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
data_entry_flow.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
exceptions.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
loader.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
monkey_patch.py Black 2019-07-31 12:25:30 -07:00
package_constraints.txt Updated frontend to 20190822.0 2019-08-22 15:05:57 -07:00
requirements.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
setup.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00