More async tests (#4223)
* Annotate test callbacks to be async * Convert device_sun_light_trigger to be async
This commit is contained in:
parent
22c3d014aa
commit
62785c2431
21 changed files with 110 additions and 21 deletions
|
@ -1,6 +1,7 @@
|
|||
"""The tests for numeric state automation."""
|
||||
import unittest
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.bootstrap import setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
|
||||
|
@ -16,6 +17,7 @@ class TestAutomationNumericState(unittest.TestCase):
|
|||
self.hass.config.components.append('group')
|
||||
self.calls = []
|
||||
|
||||
@callback
|
||||
def record_call(service):
|
||||
"""Helper to record calls."""
|
||||
self.calls.append(service)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue