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

Add room hint support to Google Assistant cloud (#14180)

This commit is contained in:
Paulus Schoutsen
2018-04-30 15:05:29 -04:00
committed by Pascal Vizeli
parent 6e0a3abf66
commit 12dff5baa8
2 changed files with 6 additions and 2 deletions

View File

@@ -318,7 +318,8 @@ def test_handler_google_actions(hass):
'entity_config': {
'switch.test': {
'name': 'Config name',
'aliases': 'Config alias'
'aliases': 'Config alias',
'room': 'living room'
}
}
}
@@ -347,6 +348,7 @@ def test_handler_google_actions(hass):
assert device['name']['name'] == 'Config name'
assert device['name']['nicknames'] == ['Config alias']
assert device['type'] == 'action.devices.types.SWITCH'
assert device['roomHint'] == 'living room'
async def test_refresh_token_expired(hass):