Use device name for matter entities (#127798)

This commit is contained in:
Paul Bottein
2024-10-29 10:54:25 +01:00
committed by GitHub
parent 1f03c140f5
commit bf840e8bfa
24 changed files with 352 additions and 335 deletions

View File

@@ -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)