mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Made the data attribute of Event optional
This commit is contained in:
parent
4f7e032bb4
commit
6fbadc24e4
@ -61,7 +61,7 @@ class EventBus(object):
|
|||||||
class Event(object):
|
class Event(object):
|
||||||
""" An event to be sent over the eventbus. """
|
""" An event to be sent over the eventbus. """
|
||||||
|
|
||||||
def __init__(self, event_type, data):
|
def __init__(self, event_type, data={}):
|
||||||
self.event_type = event_type
|
self.event_type = event_type
|
||||||
self.data = data
|
self.data = data
|
||||||
self.stop_propegating = False
|
self.stop_propegating = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user