mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 07:25:52 -05:00
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:
@@ -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