Refactor Google Assistant (#12959)

* Refactor Google Assistant

* Fix cloud test

* Fix supported features media player demo

* Fix query

* Fix execute

* Fix demo media player tests

* Add tests for traits

* Lint

* Lint

* Add integration tests

* Add more tests

* update logging

* Catch out of range temp errrors

* Fix cloud error

* Lint
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2018-03-08 14:39:10 -08:00
1 parent 8792fd22b9
commit 9b1a75a74b
16 files changed
+1676 -822

No files matched your search

+1 -2
View File
@@ -318,7 +318,6 @@ def test_handler_google_actions(hass):
'entity_config': {
'switch.test': {
'name': 'Config name',
'type': 'light',
'aliases': 'Config alias'
}
}
@@ -347,7 +346,7 @@ def test_handler_google_actions(hass):
assert device['id'] == 'switch.test'
assert device['name']['name'] == 'Config name'
assert device['name']['nicknames'] == ['Config alias']
assert device['type'] == 'action.devices.types.LIGHT'
assert device['type'] == 'action.devices.types.SWITCH'
async def test_refresh_token_expired(hass):