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:
@@ -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")])
|
||||
|
||||
Reference in New Issue
Block a user