Migrate mqtt to use async_update_entry to alter config entries (#110407)

This commit is contained in:
J. Nick Koston
2024-02-12 14:38:13 -06:00
committed by GitHub
parent 4a98f3f223
commit 04dccc7ec6
2 changed files with 146 additions and 100 deletions

View File

@ -2638,7 +2638,9 @@ async def test_default_entry_setting_are_applied(
# Config entry data is incomplete but valid according the schema
entry = hass.config_entries.async_entries(mqtt.DOMAIN)[0]
entry.data = {"broker": "test-broker", "port": 1234}
hass.config_entries.async_update_entry(
entry, data={"broker": "test-broker", "port": 1234}
)
await mqtt_mock_entry()
await hass.async_block_till_done()