diff --git a/custom_components/iaquk/__init__.py b/custom_components/iaquk/__init__.py index be2e5fc..dcc2245 100644 --- a/custom_components/iaquk/__init__.py +++ b/custom_components/iaquk/__init__.py @@ -25,7 +25,7 @@ from homeassistant.core import State, callback from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv -from homeassistant.helpers.event import async_track_state_change +from homeassistant.helpers.event import async_track_state_change_event from homeassistant.util.unit_conversion import TemperatureConverter from .const import ( @@ -198,7 +198,7 @@ def sensor_startup(event): ", ".join(entity_ids), ) - async_track_state_change(self.hass, entity_ids, sensor_state_listener) + async_track_state_change_event(self.hass, entity_ids, sensor_state_listener) sensor_state_listener(None, None, None) # Force first update if not self._added: diff --git a/custom_components/iaquk/const.py b/custom_components/iaquk/const.py index 206e11d..216f78a 100644 --- a/custom_components/iaquk/const.py +++ b/custom_components/iaquk/const.py @@ -6,7 +6,7 @@ # Base component constants NAME: Final = "Indoor Air Quality UK Index" DOMAIN: Final = "iaquk" -VERSION: Final = "1.6.8" +VERSION: Final = "1.6.9-alpha" ISSUE_URL: Final = "https://github.com/Limych/ha-iaquk/issues" STARTUP_MESSAGE: Final = f""" diff --git a/custom_components/iaquk/manifest.json b/custom_components/iaquk/manifest.json index ce094b5..40c239a 100644 --- a/custom_components/iaquk/manifest.json +++ b/custom_components/iaquk/manifest.json @@ -10,5 +10,5 @@ "iot_class": "calculated", "issue_tracker": "https://github.com/Limych/ha-iaquk/issues", "requirements": [], - "version": "1.6.8" + "version": "1.6.9-alpha" } \ No newline at end of file