diff --git a/homeassistant/components/esphome/entity.py b/homeassistant/components/esphome/entity.py index 1def6d37e02..7bd769231ac 100644 --- a/homeassistant/components/esphome/entity.py +++ b/homeassistant/components/esphome/entity.py @@ -301,13 +301,11 @@ class EsphomeAssistEntity(Entity): connections={(dr.CONNECTION_NETWORK_MAC, device_info.mac_address)} ) - @callback - def _update(self) -> None: - self.async_write_ha_state() - async def async_added_to_hass(self) -> None: """Register update callback.""" await super().async_added_to_hass() self.async_on_remove( - self._entry_data.async_subscribe_assist_pipeline_update(self._update) + self._entry_data.async_subscribe_assist_pipeline_update( + self.async_write_ha_state + ) )