fixed 'on_startup() takes 0 positional arguments but 1 was given' (#17295)
parent
951d7154b8
commit
1d78393680
|
@ -106,7 +106,7 @@ class MiFloraSensor(Entity):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue