Bump knx-telegram-store to 0.14.0 (#182758)

This commit is contained in:
Martin Hoefling
2026-09-20 13:46:50 +02:00
committed by GitHub
parent 1762d2dfac
commit 59105925cd
4 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
"xknx==3.20.0",
"xknxproject==3.10.0",
"knx-frontend==2026.9.4.63549",
"knx-telegram-store[sqlite,postgres]==0.11.2"
"knx-telegram-store[sqlite,postgres]==0.14.0"
],
"single_config_entry": true
}
@@ -142,6 +142,11 @@ class Telegrams:
retention_days=self.retention_days,
flush_interval=FLUSH_INTERVAL_SECONDS_SQLITE,
max_buffer_size=MAX_BUFFER_TELEGRAMS_SQLITE,
# Databases written before knx-telegram-store 0.14 hold local
# wall-clock times with no offset. Only we know which zone wrote
# them - it is ours, not necessarily the host's - so the store
# is told once and converts them on this start.
legacy_timestamp_timezone=dt_util.get_default_time_zone(),
)
self._xknx_telegram_cb_handle = (
+1 -1
View File
@@ -1487,7 +1487,7 @@ knocki==0.4.2
knx-frontend==2026.9.4.63549
# homeassistant.components.knx
knx-telegram-store[sqlite,postgres]==0.11.2
knx-telegram-store[sqlite,postgres]==0.14.0
# homeassistant.components.kraken
krakenex==2.2.2
+16
View File
@@ -167,6 +167,22 @@ async def test_store_telegram_history_error_handling(
assert issue is not None
async def test_sqlite_store_is_told_the_configured_timezone(
hass: HomeAssistant,
knx: KNXTestKit,
) -> None:
"""Test the SQLite store receives Home Assistant's configured time zone."""
await hass.config.async_set_time_zone("Europe/Berlin")
await knx.setup_integration(real_telegram_store=True)
store = hass.data[KNX_MODULE_KEY].telegrams.store
assert store is not None
# The zone the store was handed, read back off the real store rather than
# off a mock: the store fixture rebuilds the class during setup, so a patch
# placed around setup_integration never sees the call.
assert store._legacy_timestamp_timezone is dt_util.get_default_time_zone()
async def test_store_telegram_history_needs_migration_timeout(
hass: HomeAssistant,
knx: KNXTestKit,