mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
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:
committed by
Pascal Vizeli
parent
3e99743244
commit
f184bf4d85
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user