diff --git a/custom_components/priceanalyzer/sensor.py b/custom_components/priceanalyzer/sensor.py index 3eb248b..76a5d22 100644 --- a/custom_components/priceanalyzer/sensor.py +++ b/custom_components/priceanalyzer/sensor.py @@ -253,7 +253,7 @@ def _update(self, data) -> None: self._data.update(data) def update_sensor(self): - self.async_write_ha_state() + self.schedule_update_ha_state() async def async_added_to_hass(self): """Connect to dispatcher listening for entity data notifications.""" @@ -346,7 +346,7 @@ def _update(self, data) -> None: self._data.update(data) def update_sensor(self): - self.async_write_ha_state() + self.schedule_update_ha_state() async def async_added_to_hass(self): """Connect to dispatcher listening for entity data notifications.""" @@ -418,7 +418,7 @@ def _update(self, data) -> None: self._data.update(data) def update_sensor(self): - self.async_write_ha_state() + self.schedule_update_ha_state() async def async_added_to_hass(self): """Connect to dispatcher listening for entity data notifications."""