Fix automation failing to setup if no automations specified (#7647)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-05-17 21:57:50 -07:00
1 parent 3d4b2436db
commit e773133bcf
5 files changed
+11 -16

No files matched your search

+1 -1
View File
@@ -370,7 +370,7 @@ class TestAutomationTemplate(unittest.TestCase):
def test_if_fires_on_change_with_bad_template(self):
"""Test for firing on change with bad template."""
with assert_setup_component(0):
assert not setup_component(self.hass, automation.DOMAIN, {
assert setup_component(self.hass, automation.DOMAIN, {
automation.DOMAIN: {
'trigger': {
'platform': 'template',