1 """Support for SMS notifications from the Dovado router."""
3 from __future__
import annotations
11 from .
import DOMAIN
as DOVADO_DOMAIN
13 _LOGGER = logging.getLogger(__name__)
19 discovery_info: DiscoveryInfoType |
None =
None,
20 ) -> DovadoSMSNotificationService:
21 """Get the Dovado Router SMS notification service."""
26 """Implement the notification service for the Dovado SMS component."""
29 """Initialize the service."""
33 """Send SMS to the specified target phone number."""
34 if not (target := kwargs.get(ATTR_TARGET)):
35 _LOGGER.error(
"One target is required")
38 self.
_client_client.send_sms(target, message)
def send_message(self, message, **kwargs)
def __init__(self, client)
DovadoSMSNotificationService get_service(HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)