From ef92940ffb4980dc490bd91799299718c7b34a63 Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sun, 24 Jan 2016 16:45:35 -0500 Subject: [PATCH] A few lint fixes to event decorators. --- homeassistant/helpers/event_decorators.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homeassistant/helpers/event_decorators.py b/homeassistant/helpers/event_decorators.py index 35b1247cf60..fbf979eaf47 100644 --- a/homeassistant/helpers/event_decorators.py +++ b/homeassistant/helpers/event_decorators.py @@ -70,10 +70,10 @@ class Automation(object): hass = None - def __init__(self, action, event, event_args): + def __init__(self, action, event_fun, event_args): # store action and config self.action = action - self._event = (event, event_args) + self._event = (event_fun, event_args) self._activated = False self._last_run = None self._running = 0 @@ -86,6 +86,7 @@ class Automation(object): def __call__(self, *args, **kwargs): """ Call the action """ + # pylint: disable=broad-except if not self.activated: return