Fix KNX event listener fallback

This commit is contained in:
2026-02-13 20:07:23 +01:00
parent 4660344a89
commit 0fa390fd7f
4 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
# Changelog
## 0.0.12 - 2026-02-13
- Fix KNX event listener setup for HA versions without async_track_event helper.
## 0.0.11 - 2026-02-13
- Move translations into the integration folder so UI labels render.
- Downgrade missing subentry support log to debug.

View File

@@ -67,6 +67,6 @@ Each group address has `invert incoming` and `invert outgoing` toggles to flip K
- Advanced DPT mapping options and inversion settings.
## Versioning and Releases
- Current version: 0.0.11
- Current version: 0.0.12
- `CHANGELOG.md` lists versions with the newest entries at the top.
- Release creation is manual and only done when explicitly requested.

View File

@@ -329,9 +329,14 @@ class BridgeManager:
)
if self._address_handlers:
if hasattr(event_helper, "async_track_event"):
self._knx_event_unsub = event_helper.async_track_event(
self.hass, "knx_event", self._handle_knx_event
)
else:
self._knx_event_unsub = self.hass.bus.async_listen(
"knx_event", self._handle_knx_event
)
await self._register_knx_events()

View File

@@ -1,7 +1,7 @@
{
"domain": "ha_knx_bridge",
"name": "HA KNX Bridge",
"version": "0.0.11",
"version": "0.0.12",
"config_flow": true,
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",