mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
fixed 'on_startup() takes 0 positional arguments but 1 was given' (#17295)
This commit is contained in:
committed by
Paulus Schoutsen
parent
40e0966d7f
commit
052c094425
@@ -106,7 +106,7 @@ class MiFloraSensor(Entity):
|
|||||||
async def async_added_to_hass(self):
|
async def async_added_to_hass(self):
|
||||||
"""Set initial state."""
|
"""Set initial state."""
|
||||||
@callback
|
@callback
|
||||||
def on_startup():
|
def on_startup(_):
|
||||||
self.async_schedule_update_ha_state(True)
|
self.async_schedule_update_ha_state(True)
|
||||||
|
|
||||||
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, on_startup)
|
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_START, on_startup)
|
||||||
|
Reference in New Issue
Block a user