mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Use the action field enums in llamalab_automate (#195955)
This commit is contained in:
@@ -8,9 +8,9 @@ import probatio
|
||||
import requests
|
||||
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_DATA,
|
||||
PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA,
|
||||
BaseNotificationService,
|
||||
NotifyServiceArgument,
|
||||
)
|
||||
from homeassistant.const import CONF_API_KEY, CONF_DEVICE
|
||||
from homeassistant.core import HomeAssistant
|
||||
@@ -60,7 +60,7 @@ class AutomateNotificationService(BaseNotificationService):
|
||||
"""Send a message to a user."""
|
||||
|
||||
# Extract params from data dict
|
||||
data = dict(kwargs.get(ATTR_DATA) or {})
|
||||
data = dict(kwargs.get(NotifyServiceArgument.DATA) or {})
|
||||
priority = data.get(ATTR_PRIORITY, "normal").lower()
|
||||
|
||||
_LOGGER.debug(
|
||||
|
||||
Reference in New Issue
Block a user