diff --git a/homeassistant/components/sensor/miflora.py b/homeassistant/components/sensor/miflora.py index a097974fbfd..74bb8261609 100644 --- a/homeassistant/components/sensor/miflora.py +++ b/homeassistant/components/sensor/miflora.py @@ -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)