move html5 service to html5 domain (#29145)
This commit is contained in:
parent
8933540950
commit
fb9f561052
4 changed files with 14 additions and 13 deletions
3
homeassistant/components/html5/const.py
Normal file
3
homeassistant/components/html5/const.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
"""Constants for the HTML5 component."""
|
||||
DOMAIN = "html5"
|
||||
SERVICE_DISMISS = "dismiss"
|
|
@ -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"
|
||||
|
|
|
@ -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" }'
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue