Add automations and scripts to group.all_automations and group.all_scripts (#3664)
* Add automations to group.all_automations * Add scripts to group.all_scripts
This commit is contained in:
1 parent
0bf8bb62ad
commit
d2d393feb5
4 files changed
+15
-2
No files matched your search
@@ -75,6 +75,10 @@ class TestAutomation(unittest.TestCase):
|
||||
assert state is not None
|
||||
assert state.attributes.get('last_triggered') == time
|
||||
|
||||
state = self.hass.states.get('group.all_automations')
|
||||
assert state is not None
|
||||
assert state.attributes.get('entity_id') == ('automation.hello',)
|
||||
|
||||
def test_service_specify_entity_id(self):
|
||||
"""Test service data."""
|
||||
assert setup_component(self.hass, automation.DOMAIN, {
|
||||
|
||||
@@ -82,6 +82,10 @@ class TestScriptComponent(unittest.TestCase):
|
||||
self.hass.block_till_done()
|
||||
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,)
|
||||
|
||||
def test_toggle_service(self):
|
||||
"""Test the toggling of a service."""
|
||||
event = 'test_event'
|
||||
|
||||
Reference in new issue
Block a user