From ed0453a7d88dc058c48ebbfe7cb9ccbf0bc4ae68 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 1 Dec 2026 11:24:35 +0100 Subject: [PATCH] Use the action field enums in huawei_lte (#195770) --- homeassistant/components/huawei_lte/notify.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/huawei_lte/notify.py b/homeassistant/components/huawei_lte/notify.py index d67110c87144..020ad4690e13 100644 --- a/homeassistant/components/huawei_lte/notify.py +++ b/homeassistant/components/huawei_lte/notify.py @@ -5,7 +5,10 @@ from typing import Any, override from huawei_lte_api.exceptions import ResponseErrorException -from homeassistant.components.notify import ATTR_TARGET, BaseNotificationService +from homeassistant.components.notify import ( + BaseNotificationService, + NotifyServiceArgument, +) from homeassistant.const import ATTR_CONFIG_ENTRY_ID, CONF_RECIPIENT from homeassistant.core import HomeAssistant from homeassistant.exceptions import HomeAssistantError @@ -48,7 +51,7 @@ class HuaweiLteSmsNotificationService(BaseNotificationService): def send_message(self, message: str = "", **kwargs: Any) -> None: """Send message to target numbers.""" - targets = kwargs.get(ATTR_TARGET, self.default_targets) + targets = kwargs.get(NotifyServiceArgument.TARGET, self.default_targets) if not targets or not message: return