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

Fix device name Google Assistant when using aliases (#31416)

* Fix device name Google Assistant when using aliases

* Adjust cloud tests
This commit is contained in:
Franck Nijhof
2020-02-02 23:48:13 +01:00
committed by GitHub
parent 883b8f21ce
commit 826433b680
4 changed files with 10 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ async def test_handler_google_actions(hass):
device = devices[0]
assert device["id"] == "switch.test"
assert device["name"]["name"] == "Config name"
assert device["name"]["nicknames"] == ["Config alias"]
assert device["name"]["nicknames"] == ["Config name", "Config alias"]
assert device["type"] == "action.devices.types.SWITCH"
assert device["roomHint"] == "living room"