Convert script component to async (#4427)
This commit is contained in:
1 parent
726bc5b670
commit
23fb8c4cdd
2 files changed
+42
-21
No files matched your search
@@ -86,6 +86,11 @@ class TestScriptComponent(unittest.TestCase):
|
||||
self.hass.block_till_done()
|
||||
self.assertEqual(0, len(events))
|
||||
|
||||
script.turn_off(self.hass, ENTITY_ID)
|
||||
self.hass.block_till_done()
|
||||
self.assertFalse(script.is_on(self.hass, ENTITY_ID))
|
||||
self.assertEqual(0, len(events))
|
||||
|
||||
state = self.hass.states.get('group.all_scripts')
|
||||
assert state is not None
|
||||
assert state.attributes.get('entity_id') == (ENTITY_ID,)
|
||||
|
||||
Reference in new issue
Block a user