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:
committed by
Pascal Vizeli
parent
6e0a3abf66
commit
12dff5baa8
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user