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:
@@ -1,6 +1,7 @@
|
||||
"""The tests for the MQTT automation."""
|
||||
import unittest
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.bootstrap import setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
from tests.common import (
|
||||
@@ -17,6 +18,7 @@ class TestAutomationMQTT(unittest.TestCase):
|
||||
mock_mqtt_component(self.hass)
|
||||
self.calls = []
|
||||
|
||||
@callback
|
||||
def record_call(service):
|
||||
self.calls.append(service)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user