1 """Support for Keba notifications."""
3 from __future__
import annotations
15 discovery_info: DiscoveryInfoType |
None =
None,
16 ) -> KebaNotificationService:
17 """Return the notify service."""
19 client = hass.data[DOMAIN]
24 """Notification service for KEBA EV Chargers."""
27 """Initialize the service."""
31 """Send the message."""
32 text = message.replace(
" ",
"$")
34 data = kwargs[ATTR_DATA]
or {}
35 min_time =
float(data.get(
"min_time", 2))
36 max_time =
float(data.get(
"max_time", 10))
38 await self.
_client_client.set_text(text, min_time, max_time)
def async_send_message(self, message="", **kwargs)
def __init__(self, client)
KebaNotificationService async_get_service(HomeAssistant hass, ConfigType config, DiscoveryInfoType|None discovery_info=None)