mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +02: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,
|
||||
BaseNotificationService,
|
||||
)
|
||||
from homeassistant.const import CONF_PASSWORD
|
||||
from homeassistant.const import CONF_EVENT, CONF_PASSWORD
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
ATTR_ENCRYPTED = "encrypted"
|
||||
|
||||
CONF_DEVICE_KEY = "device_key"
|
||||
CONF_EVENT = "event"
|
||||
CONF_SALT = "salt"
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
@ -44,7 +43,6 @@ class SimplePushNotificationService(BaseNotificationService):
|
||||
|
||||
def send_message(self, message="", **kwargs):
|
||||
"""Send a message to a Simplepush user."""
|
||||
|
||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||
|
||||
if self._password:
|
||||
|
Loading…
Reference in New Issue
Block a user