More async tests (#4223)
* Annotate test callbacks to be async * Convert device_sun_light_trigger to be async
This commit is contained in:
1 parent
22c3d014aa
commit
62785c2431
21 files changed
+110
-21
No files matched your search
@@ -288,6 +288,7 @@ class TestAPI(unittest.TestCase):
|
||||
"""Test if the API allows us to call a service."""
|
||||
test_value = []
|
||||
|
||||
@ha.callback
|
||||
def listener(service_call):
|
||||
"""Helper method that will verify that our service got called."""
|
||||
test_value.append(1)
|
||||
@@ -307,6 +308,7 @@ class TestAPI(unittest.TestCase):
|
||||
"""Test if the API allows us to call a service."""
|
||||
test_value = []
|
||||
|
||||
@ha.callback
|
||||
def listener(service_call):
|
||||
"""Helper method that will verify that our service got called.
|
||||
|
||||
|
||||
Reference in new issue
Block a user