Clean up tests (#4209)
This commit is contained in:
parent
6f68752d1e
commit
e88b98f5fa
11 changed files with 42 additions and 5 deletions
|
@ -4,6 +4,7 @@ import json
|
|||
from datetime import datetime, timedelta
|
||||
import unittest
|
||||
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.const import MATCH_ALL
|
||||
from homeassistant.components import recorder
|
||||
from homeassistant.bootstrap import setup_component
|
||||
|
@ -110,6 +111,7 @@ class TestRecorder(unittest.TestCase):
|
|||
|
||||
events = []
|
||||
|
||||
@callback
|
||||
def event_listener(event):
|
||||
"""Record events from eventbus."""
|
||||
if event.event_type == event_type:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue