Skip to content
Snippets Groups Projects
Unverified Commit 13b881ac authored by tkdrob's avatar tkdrob Committed by GitHub
Browse files

Use core constants for simplepush (#46465)

parent 621c8e70
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,12 @@ from homeassistant.components.notify import ( ...@@ -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): ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment