mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Move Google Assistant entity config out of customize (#11499)
* Move Google Assistant entity config out of customize * CONF_ALIAS -> CONF_ALIASES * Lint
This commit is contained in:
@@ -317,6 +317,13 @@ def test_handler_google_actions(hass):
|
||||
'filter': {
|
||||
'exclude_entities': 'switch.test2'
|
||||
},
|
||||
'entity_config': {
|
||||
'switch.test': {
|
||||
'name': 'Config name',
|
||||
'type': 'light',
|
||||
'aliases': 'Config alias'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -340,4 +347,6 @@ def test_handler_google_actions(hass):
|
||||
|
||||
device = devices[0]
|
||||
assert device['id'] == 'switch.test'
|
||||
assert device['name']['name'] == 'Test switch'
|
||||
assert device['name']['name'] == 'Config name'
|
||||
assert device['name']['nicknames'] == ['Config alias']
|
||||
assert device['type'] == 'action.devices.types.LIGHT'
|
||||
|
||||
Reference in New Issue
Block a user