Removed service decorator from event decorators

pull/979/head
Ryan Kraus 2016-01-24 23:09:09 -05:00
parent 3b89102338
commit bcdfc555e0
1 changed files with 0 additions and 12 deletions

View File

@ -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 """