Update __init__.py
Updated to fix the following error when loading sensors: "home-assistant/homeassistant/components/sensor/__init__.py", line 87, in setup hass.track_time_change(update_sensor_states, seconds=range(0, 60, 3)) TypeError: track_time_change() got an unexpected keyword argument 'seconds'" the named parameter was using seconds instead of second
This commit is contained in:
parent
b73700d139
commit
cda821e649
1 changed files with 1 additions and 1 deletions
|
@ -84,6 +84,6 @@ def setup(hass, config):
|
||||||
discovery.listen(hass, DISCOVERY_PLATFORMS.keys(), sensor_discovered)
|
discovery.listen(hass, DISCOVERY_PLATFORMS.keys(), sensor_discovered)
|
||||||
|
|
||||||
# Fire every 3 seconds
|
# Fire every 3 seconds
|
||||||
hass.track_time_change(update_sensor_states, seconds=range(0, 60, 3))
|
hass.track_time_change(update_sensor_states, second=range(0, 60, 3))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Add table
Reference in a new issue