mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Use core constants for simplepush (#46465)
This commit is contained in:
parent
621c8e700b
commit
13b881acfc
@ -8,13 +8,12 @@ from homeassistant.components.notify import (
|
|||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
BaseNotificationService,
|
BaseNotificationService,
|
||||||
)
|
)
|
||||||
from homeassistant.const import CONF_PASSWORD
|
from homeassistant.const import CONF_EVENT, CONF_PASSWORD
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
ATTR_ENCRYPTED = "encrypted"
|
ATTR_ENCRYPTED = "encrypted"
|
||||||
|
|
||||||
CONF_DEVICE_KEY = "device_key"
|
CONF_DEVICE_KEY = "device_key"
|
||||||
CONF_EVENT = "event"
|
|
||||||
CONF_SALT = "salt"
|
CONF_SALT = "salt"
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||||
@ -44,7 +43,6 @@ class SimplePushNotificationService(BaseNotificationService):
|
|||||||
|
|
||||||
def send_message(self, message="", **kwargs):
|
def send_message(self, message="", **kwargs):
|
||||||
"""Send a message to a Simplepush user."""
|
"""Send a message to a Simplepush user."""
|
||||||
|
|
||||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||||
|
|
||||||
if self._password:
|
if self._password:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user