Migrate homematicip_cloud to use async_update_entry to alter config entries (#110308)

This commit is contained in:
J. Nick Koston 2024-02-12 01:29:37 -06:00 committed by GitHub
parent 303bb99da0
commit 55022767ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,9 @@ async def test_hap_with_name(
entity_name = f"{home_name} Treppe CH"
device_model = "HmIP-BSL"
hmip_config_entry.data = {**hmip_config_entry.data, "name": home_name}
hass.config_entries.async_update_entry(
hmip_config_entry, data={**hmip_config_entry.data, "name": home_name}
)
mock_hap = await HomeFactory(
hass, mock_connection, hmip_config_entry
).async_get_mock_hap(test_devices=["Treppe"])