Fix no data event triggers (#10049)

* Test including extra data on a no data trigger

* Match any dicts for default schema for event data

* Fix indentation

* Only check schema if one was configured
This commit is contained in:
Adam Mills
2017-10-22 20:20:38 -04:00
committed by GitHub
parent 05ba78d886
commit 4e7cc110d9
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class TestAutomationEvent(unittest.TestCase):
}
})
self.hass.bus.fire('test_event')
self.hass.bus.fire('test_event', {'extra_key': 'extra_data'})
self.hass.block_till_done()
self.assertEqual(1, len(self.calls))