More async tests (#4223)

* Annotate test callbacks to be async

* Convert device_sun_light_trigger to be async
This commit is contained in:
Paulus Schoutsen 2016-11-05 16:36:20 -07:00 committed by GitHub
parent 22c3d014aa
commit 62785c2431
21 changed files with 110 additions and 21 deletions

View file

@ -3,6 +3,7 @@ from datetime import timedelta
import unittest
from unittest.mock import patch
from homeassistant.core import callback
from homeassistant.bootstrap import setup_component
import homeassistant.util.dt as dt_util
import homeassistant.components.automation as automation
@ -20,6 +21,7 @@ class TestAutomationTime(unittest.TestCase):
self.hass.config.components.append('group')
self.calls = []
@callback
def record_call(service):
self.calls.append(service)