Remove service helper (5) (#16917)
* Update switch * Update script * Update light * Fix tests * Fix config/script hook * Async_create_task * Fix flux switch
This commit is contained in:
1 parent
a7248d4574
commit
70b901017f
27 files changed
+385
-316
No files matched your search
@@ -79,10 +79,10 @@ def test_component_loader_non_existing(hass):
|
||||
@asyncio.coroutine
|
||||
def test_component_wrapper(hass):
|
||||
"""Test component wrapper."""
|
||||
calls = async_mock_service(hass, 'light', 'turn_on')
|
||||
calls = async_mock_service(hass, 'persistent_notification', 'create')
|
||||
|
||||
components = loader.Components(hass)
|
||||
components.light.async_turn_on('light.test')
|
||||
components.persistent_notification.async_create('message')
|
||||
yield from hass.async_block_till_done()
|
||||
|
||||
assert len(calls) == 1
|
||||
|
||||
Reference in new issue
Block a user