mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Migrate knx to use async_update_entry to alter config entries (#110312)
This commit is contained in:
parent
33cdcce191
commit
5528ae9707
@ -105,9 +105,10 @@ async def test_remove_telegam_history(
|
|||||||
):
|
):
|
||||||
"""Test telegram history removal when configured to size 0."""
|
"""Test telegram history removal when configured to size 0."""
|
||||||
hass_storage["knx/telegrams_history.json"] = {"version": 1, "data": MOCK_TELEGRAMS}
|
hass_storage["knx/telegrams_history.json"] = {"version": 1, "data": MOCK_TELEGRAMS}
|
||||||
knx.mock_config_entry.data = knx.mock_config_entry.data | {
|
hass.config_entries.async_update_entry(
|
||||||
CONF_KNX_TELEGRAM_LOG_SIZE: 0
|
knx.mock_config_entry,
|
||||||
}
|
data=knx.mock_config_entry.data | {CONF_KNX_TELEGRAM_LOG_SIZE: 0},
|
||||||
|
)
|
||||||
await knx.setup_integration({})
|
await knx.setup_integration({})
|
||||||
# Store.async_remove() is mocked by hass_storage - check that data was removed.
|
# Store.async_remove() is mocked by hass_storage - check that data was removed.
|
||||||
assert "knx/telegrams_history.json" not in hass_storage
|
assert "knx/telegrams_history.json" not in hass_storage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user