mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 17:31:15 -04:00
Bump knx-telegram-store to 0.14.0 (#182758)
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Generated
+1
-1
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user