From d3fd610a8efe3d89fe83adcb6746c1adef7685c7 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 1 Dec 2026 17:28:24 +0100 Subject: [PATCH] Use the action field enums in keba (#195813) --- homeassistant/components/keba/notify.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/keba/notify.py b/homeassistant/components/keba/notify.py index f382460c80ac..04261275d4cb 100644 --- a/homeassistant/components/keba/notify.py +++ b/homeassistant/components/keba/notify.py @@ -2,7 +2,10 @@ from typing import Any, override -from homeassistant.components.notify import ATTR_DATA, BaseNotificationService +from homeassistant.components.notify import ( + BaseNotificationService, + NotifyServiceArgument, +) from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType @@ -32,7 +35,7 @@ class KebaNotificationService(BaseNotificationService): """Send the message.""" text = message.replace(" ", "$") # Will be translated back by the display - data = kwargs[ATTR_DATA] or {} + data = kwargs[NotifyServiceArgument.DATA] or {} min_time = float(data.get("min_time", 2)) max_time = float(data.get("max_time", 10))