1
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:
tkdrob 2021-02-13 07:07:11 -05:00 committed by GitHub
parent 621c8e700b
commit 13b881acfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: