move html5 service to html5 domain (#29145)

This commit is contained in:
Raman Gupta 2019-11-27 05:13:27 -05:00 committed by Pascal Vizeli
parent 8933540950
commit fb9f561052
4 changed files with 14 additions and 13 deletions

View file

@ -0,0 +1,3 @@
"""Constants for the HTML5 component."""
DOMAIN = "html5"
SERVICE_DISMISS = "dismiss"

View file

@ -34,17 +34,16 @@ from homeassistant.components.notify import (
ATTR_TARGET,
ATTR_TITLE,
ATTR_TITLE_DEFAULT,
DOMAIN,
PLATFORM_SCHEMA,
BaseNotificationService,
)
from .const import DOMAIN, SERVICE_DISMISS
_LOGGER = logging.getLogger(__name__)
REGISTRATIONS_FILE = "html5_push_registrations.conf"
SERVICE_DISMISS = "html5_dismiss"
ATTR_GCM_SENDER_ID = "gcm_sender_id"
ATTR_GCM_API_KEY = "gcm_api_key"
ATTR_VAPID_PUB_KEY = "vapid_pub_key"

View file

@ -0,0 +1,9 @@
dismiss:
description: Dismiss a html5 notification.
fields:
target:
description: An array of targets. Optional.
example: ['my_phone', 'my_tablet']
data:
description: Extended information of notification. Supports tag. Optional.
example: '{ "tag": "tagname" }'

View file

@ -16,16 +16,6 @@ notify:
description: Extended information for notification. Optional depending on the platform.
example: platform specific
html5_dismiss:
description: Dismiss a html5 notification.
fields:
target:
description: An array of targets. Optional.
example: ['my_phone', 'my_tablet']
data:
description: Extended information of notification. Supports tag. Optional.
example: '{ "tag": "tagname" }'
apns_register:
description: Registers a device to receive push notifications.
fields: