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:
parent
3e99743244
commit
f184bf4d85
26 changed files with 510 additions and 56 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue