1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Use the ESPHome object_id to suggest the entity id (#95852)

This commit is contained in:
J. Nick Koston
2023-07-10 01:02:34 -10:00
committed by GitHub
parent 87f284c7e9
commit 7dc03ef301
16 changed files with 232 additions and 196 deletions

View File

@@ -60,14 +60,14 @@ async def test_select_generic_entity(
user_service=user_service,
states=states,
)
state = hass.states.get("select.test_my_select")
state = hass.states.get("select.test_myselect")
assert state is not None
assert state.state == "a"
await hass.services.async_call(
SELECT_DOMAIN,
SERVICE_SELECT_OPTION,
{ATTR_ENTITY_ID: "select.test_my_select", ATTR_OPTION: "b"},
{ATTR_ENTITY_ID: "select.test_myselect", ATTR_OPTION: "b"},
blocking=True,
)
mock_client.select_command.assert_has_calls([call(1, "b")])