mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Migrate homematicip_cloud to use async_update_entry to alter config entries (#110308)
This commit is contained in:
parent
303bb99da0
commit
55022767ac
@ -209,7 +209,9 @@ async def test_hap_with_name(
|
|||||||
entity_name = f"{home_name} Treppe CH"
|
entity_name = f"{home_name} Treppe CH"
|
||||||
device_model = "HmIP-BSL"
|
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(
|
mock_hap = await HomeFactory(
|
||||||
hass, mock_connection, hmip_config_entry
|
hass, mock_connection, hmip_config_entry
|
||||||
).async_get_mock_hap(test_devices=["Treppe"])
|
).async_get_mock_hap(test_devices=["Treppe"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user