Fix service documentation appearing for notifications

We want the descriptions for notify.notify regardless of the name of the
exact notify service being called.
This commit is contained in:
David Edmundson 2016-02-22 11:13:57 +00:00
parent 7a0c99a1d5
commit 8d5a164346

View File

@ -89,7 +89,7 @@ def setup(hass, config):
service_call_handler = partial(notify_message, notify_service)
service_notify = p_config.get(CONF_NAME, SERVICE_NOTIFY)
hass.services.register(DOMAIN, service_notify, service_call_handler,
descriptions.get(service_notify))
descriptions.get(SERVICE_NOTIFY))
success = True
return success