Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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