Use the action field enums in llamalab_automate (#195955)

This commit is contained in:
epenet
2026-12-02 09:00:56 +01:00
committed by GitHub
parent b31815a194
commit f0277663f9
@@ -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(