diff --git a/homeassistant/components/llamalab_automate/notify.py b/homeassistant/components/llamalab_automate/notify.py index b5b93dfeb635..ac1497166061 100644 --- a/homeassistant/components/llamalab_automate/notify.py +++ b/homeassistant/components/llamalab_automate/notify.py @@ -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(