From 6fbadc24e42c0c302234663be79fca0a6ac8f910 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 23 Sep 2013 00:38:36 -0700 Subject: [PATCH] Made the data attribute of Event optional --- homeassistant/EventBus.py | 2 +- homeassistant/{util.py => common.py} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename homeassistant/{util.py => common.py} (100%) diff --git a/homeassistant/EventBus.py b/homeassistant/EventBus.py index b523221ca0a..ad207a8a4d7 100644 --- a/homeassistant/EventBus.py +++ b/homeassistant/EventBus.py @@ -61,7 +61,7 @@ class EventBus(object): class Event(object): """ 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.data = data self.stop_propegating = False diff --git a/homeassistant/util.py b/homeassistant/common.py similarity index 100% rename from homeassistant/util.py rename to homeassistant/common.py