1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Make automation async

This commit is contained in:
Paulus Schoutsen
2016-10-01 01:22:13 -07:00
parent 16ff68ca84
commit 7ab7edd81c
19 changed files with 205 additions and 346 deletions

View File

@@ -172,7 +172,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'before': 'sunrise',
},
'action': {
@@ -208,7 +208,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'after': 'sunrise',
},
'action': {
@@ -244,7 +244,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'before': 'sunrise',
'before_offset': '+1:00:00'
},
@@ -281,7 +281,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'after': 'sunrise',
'after_offset': '+1:00:00'
},
@@ -319,7 +319,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'after': 'sunrise',
'before': 'sunset'
},
@@ -365,7 +365,7 @@ class TestAutomationSun(unittest.TestCase):
'event_type': 'test_event',
},
'condition': {
'platform': 'sun',
'condition': 'sun',
'after': 'sunset',
},
'action': {