diff --git a/homeassistant/components/nanoleaf/light.py b/homeassistant/components/nanoleaf/light.py index f4312b704e2..e8bb994a06b 100644 --- a/homeassistant/components/nanoleaf/light.py +++ b/homeassistant/components/nanoleaf/light.py @@ -25,7 +25,7 @@ from homeassistant.components.light import ( ) from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry from homeassistant.const import CONF_HOST, CONF_NAME, CONF_TOKEN -from homeassistant.core import HomeAssistant +from homeassistant.core import HomeAssistant, callback import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddEntitiesCallback @@ -194,7 +194,8 @@ class NanoleafLight(NanoleafEntity, LightEntity): _LOGGER.info("Fetching %s data recovered", self.name) self._attr_available = True - async def async_handle_update(self) -> None: + @callback + def async_handle_update(self) -> None: """Handle state update.""" self.async_write_ha_state() if not self.available: