mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Context (#15674)
* Add context * Add context to switch/light services * Test set_state API * Lint * Fix tests * Do not include context yet in comparison * Do not pass in loop * Fix Z-Wave tests * Add websocket test without user
This commit is contained in:
committed by
Jason Hu
parent
867f80715e
commit
c7f4bdafc0
@@ -187,7 +187,7 @@ def async_mock_service(hass, domain, service, schema=None):
|
||||
"""Set up a fake service & return a calls log list to this service."""
|
||||
calls = []
|
||||
|
||||
@asyncio.coroutine
|
||||
@ha.callback
|
||||
def mock_service_log(call): # pylint: disable=unnecessary-lambda
|
||||
"""Mock service call."""
|
||||
calls.append(call)
|
||||
|
||||
Reference in New Issue
Block a user