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:
cdce8p authored and Paulus Schoutsen committed 2018-09-27 23:13:11 +02:00
1 parent a7248d4574
commit 70b901017f
27 files changed
+385 -316

No files matched your search

+2 -2
View File
@@ -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