Google assistant skip missing type (#23174)

* Skip entity if no device type found

* Add test for potentially skipped binary sensors

* Reorg code, add tests to ensure all exposed things have types

* Lint

* Fix tests

* Lint
This commit is contained in:
Joakim Plate authored and Paulus Schoutsen committed 2019-04-17 22:37:39 -07:00
1 parent ce8ec3acb1
commit 4a2a130bfa
9 files changed
+285 -240

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ async def test_websocket_status(hass, hass_ws_client, mock_cloud_fixture,
client = await hass_ws_client(hass)
with patch.dict(
'homeassistant.components.google_assistant.smart_home.'
'homeassistant.components.google_assistant.const.'
'DOMAIN_TO_GOOGLE_TYPES', {'light': None}, clear=True
), patch.dict('homeassistant.components.alexa.smart_home.ENTITY_ADAPTERS',
{'switch': None}, clear=True):