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:
1 parent
05ba78d886
commit
4e7cc110d9
2 files changed
+11
-8
No files matched your search
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user