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:
Daniel Høyer Iversen 2016-10-05 06:20:48 +02:00 committed by Paulus Schoutsen
parent 0bf8bb62ad
commit d2d393feb5
4 changed files with 15 additions and 2 deletions

View file

@ -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'