1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 15:44:52 +01:00

Shorten "Power-on behavior" name in matter to be consistent (#165490)

This commit is contained in:
Norbert Rittel
2026-03-13 21:22:49 +01:00
committed by GitHub
parent bfe15a55c9
commit 274c2b8092
3 changed files with 158 additions and 161 deletions

View File

@@ -325,11 +325,11 @@
}
},
"startup_on_off": {
"name": "Power-on behavior on startup",
"name": "Power-on behavior",
"state": {
"off": "[%key:common::state::off%]",
"on": "[%key:common::state::on%]",
"previous": "Previous",
"previous": "Previous state",
"toggle": "[%key:common::action::toggle%]"
}
},

File diff suppressed because it is too large Load Diff

View File

@@ -86,15 +86,12 @@ async def test_attribute_select_entities(
matter_node: MatterNode,
) -> None:
"""Test select entities are created for attribute based discovery schema(s)."""
entity_id = "select.mock_dimmable_light_power_on_behavior_on_startup"
entity_id = "select.mock_dimmable_light_power_on_behavior"
state = hass.states.get(entity_id)
assert state
assert state.state == "previous"
assert state.attributes["options"] == ["on", "off", "toggle", "previous"]
assert (
state.attributes["friendly_name"]
== "Mock Dimmable Light Power-on behavior on startup"
)
assert state.attributes["friendly_name"] == "Mock Dimmable Light Power-on behavior"
set_node_attribute(matter_node, 1, 6, 16387, 1)
await trigger_subscription_callback(hass, matter_client)
state = hass.states.get(entity_id)