Add Google Report State (#27112)

* Add Google Report State

* UPDATE codeowners"

* Add config option for dev mode

* update library

* lint

* Bug fixes
This commit is contained in:
Paulus Schoutsen 2019-10-03 04:02:38 -07:00 committed by Pascal Vizeli
parent 3e99743244
commit f184bf4d85
26 changed files with 510 additions and 56 deletions

View file

@ -1,6 +1,7 @@
"""The tests for google-assistant init."""
import asyncio
from homeassistant.core import Context
from homeassistant.setup import async_setup_component
from homeassistant.components import google_assistant as ga
@ -20,7 +21,10 @@ def test_request_sync_service(aioclient_mock, hass):
assert aioclient_mock.call_count == 0
yield from hass.services.async_call(
ga.const.DOMAIN, ga.const.SERVICE_REQUEST_SYNC, blocking=True
ga.const.DOMAIN,
ga.const.SERVICE_REQUEST_SYNC,
blocking=True,
context=Context(user_id="123"),
)
assert aioclient_mock.call_count == 1