mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Use device name for matter entities (#127798)
This commit is contained in:
@@ -67,7 +67,7 @@ async def test_entry_setup_unload(
|
||||
assert matter_client.connect.call_count == 1
|
||||
assert matter_client.set_default_fabric_label.call_count == 1
|
||||
assert entry.state is ConfigEntryState.LOADED
|
||||
entity_state = hass.states.get("light.mock_onoff_light_light")
|
||||
entity_state = hass.states.get("light.mock_onoff_light")
|
||||
assert entity_state
|
||||
assert entity_state.state != STATE_UNAVAILABLE
|
||||
|
||||
@@ -75,7 +75,7 @@ async def test_entry_setup_unload(
|
||||
|
||||
assert matter_client.disconnect.call_count == 1
|
||||
assert entry.state is ConfigEntryState.NOT_LOADED
|
||||
entity_state = hass.states.get("light.mock_onoff_light_light")
|
||||
entity_state = hass.states.get("light.mock_onoff_light")
|
||||
assert entity_state
|
||||
assert entity_state.state == STATE_UNAVAILABLE
|
||||
|
||||
@@ -676,7 +676,7 @@ async def test_remove_config_entry_device(
|
||||
device_entry = dr.async_entries_for_config_entry(
|
||||
device_registry, config_entry.entry_id
|
||||
)[0]
|
||||
entity_id = "light.m5stamp_lighting_app_light"
|
||||
entity_id = "light.m5stamp_lighting_app"
|
||||
|
||||
assert device_entry
|
||||
assert entity_registry.async_get(entity_id)
|
||||
|
||||
Reference in New Issue
Block a user