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