diff --git a/homeassistant/components/message_bird/notify.py b/homeassistant/components/message_bird/notify.py index e3352513eb54..613f2f60cb6c 100644 --- a/homeassistant/components/message_bird/notify.py +++ b/homeassistant/components/message_bird/notify.py @@ -8,9 +8,9 @@ from messagebird.client import ErrorException import probatio from homeassistant.components.notify import ( - ATTR_TARGET, PLATFORM_SCHEMA as NOTIFY_PLATFORM_SCHEMA, BaseNotificationService, + NotifyServiceArgument, ) from homeassistant.const import CONF_API_KEY, CONF_SENDER from homeassistant.core import HomeAssistant @@ -60,7 +60,7 @@ class MessageBirdNotificationService(BaseNotificationService): @override def send_message(self, message: str = "", **kwargs: Any) -> None: """Send a message to a specified target.""" - if not (targets := kwargs.get(ATTR_TARGET)): + if not (targets := kwargs.get(NotifyServiceArgument.TARGET)): _LOGGER.error("No target specified") return