Skip to content

Commit

Permalink
Replace async_track_state_change by async_track_state_change_event
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed May 3, 2024
1 parent d5fc0f3 commit 91d4791
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/iaquk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/iaquk/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/iaquk/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 91d4791

Please sign in to comment.