1
0
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:
Paulus Schoutsen
2018-01-09 15:14:56 -08:00
committed by GitHub
parent 13042d5557
commit 8313225b40
8 changed files with 86 additions and 60 deletions

View File

@@ -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'