mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
More async tests (#4223)
* Annotate test callbacks to be async * Convert device_sun_light_trigger to be async
This commit is contained in:
@@ -130,6 +130,7 @@ class TestScriptComponent(unittest.TestCase):
|
||||
"""Test different ways of passing in variables."""
|
||||
calls = []
|
||||
|
||||
@callback
|
||||
def record_call(service):
|
||||
"""Add recorded event to set."""
|
||||
calls.append(service)
|
||||
|
||||
Reference in New Issue
Block a user