Skip to content

Commit

Permalink
fixed 'on_startup() takes 0 positional arguments but 1 was given' (ho…
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAnnekov authored and balloob committed Oct 10, 2018
1 parent 951d715 commit 1d78393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/sensor/miflora.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(self, poller, parameter, name, unit, force_update, median):
async def async_added_to_hass(self):
"""Set initial state."""
@callback
def on_startup():
def on_startup(_):
self.async_schedule_update_ha_state(True)

self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, on_startup)
Expand Down

0 comments on commit 1d78393

Please sign in to comment.