mirror of
https://github.com/bahmcloud/HA-KNX-Bridge.git
synced 2026-04-06 14:31:13 +00:00
Fix KNX event listener fallback
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# 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
|
## 0.0.11 - 2026-02-13
|
||||||
- Move translations into the integration folder so UI labels render.
|
- Move translations into the integration folder so UI labels render.
|
||||||
- Downgrade missing subentry support log to debug.
|
- Downgrade missing subentry support log to debug.
|
||||||
|
|||||||
@@ -67,6 +67,6 @@ Each group address has `invert incoming` and `invert outgoing` toggles to flip K
|
|||||||
- Advanced DPT mapping options and inversion settings.
|
- Advanced DPT mapping options and inversion settings.
|
||||||
|
|
||||||
## Versioning and Releases
|
## Versioning and Releases
|
||||||
- Current version: 0.0.11
|
- Current version: 0.0.12
|
||||||
- `CHANGELOG.md` lists versions with the newest entries at the top.
|
- `CHANGELOG.md` lists versions with the newest entries at the top.
|
||||||
- Release creation is manual and only done when explicitly requested.
|
- Release creation is manual and only done when explicitly requested.
|
||||||
|
|||||||
@@ -329,9 +329,14 @@ class BridgeManager:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if self._address_handlers:
|
if self._address_handlers:
|
||||||
self._knx_event_unsub = event_helper.async_track_event(
|
if hasattr(event_helper, "async_track_event"):
|
||||||
self.hass, "knx_event", self._handle_knx_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()
|
await self._register_knx_events()
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"domain": "ha_knx_bridge",
|
"domain": "ha_knx_bridge",
|
||||||
"name": "HA KNX Bridge",
|
"name": "HA KNX Bridge",
|
||||||
"version": "0.0.11",
|
"version": "0.0.12",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
|
"documentation": "https://github.com/bahmcloud/HA-KNX-Bridge",
|
||||||
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",
|
"issue_tracker": "https://github.com/bahmcloud/HA-KNX-Bridge/issues",
|
||||||
|
|||||||
Reference in New Issue
Block a user