From bcdfc555e0e6da26d05df98a213f97af7787567a Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sun, 24 Jan 2016 23:09:09 -0500 Subject: [PATCH] Removed service decorator from event decorators --- homeassistant/helpers/event_decorators.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/homeassistant/helpers/event_decorators.py b/homeassistant/helpers/event_decorators.py index f7aee82631c..b1a1e1f0304 100644 --- a/homeassistant/helpers/event_decorators.py +++ b/homeassistant/helpers/event_decorators.py @@ -12,18 +12,6 @@ def _callback(action, *args, **kwargs): action(HASS, *args, **kwargs) -def service(domain, service_name): - """ Decorator factory to register a service """ - - def register_service_decorator(action): - """ Decorator to register a service """ - HASS.services.register(domain, service_name, - functools.partial(_callback, action)) - return action - - return register_service_decorator - - def track_state_change(entity_ids, from_state=None, to_state=None): """ Decorator factory to track state changes for entity id """