1 """Support for Ecobee Send Message service."""
3 from __future__
import annotations
10 from .
import EcobeeData
11 from .const
import DOMAIN
12 from .entity
import EcobeeBaseEntity
17 config_entry: ConfigEntry,
18 async_add_entities: AddEntitiesCallback,
20 """Set up the ecobee thermostat."""
21 data: EcobeeData = hass.data[DOMAIN]
28 """Implement the notification entity for the Ecobee thermostat."""
31 _attr_has_entity_name =
True
33 def __init__(self, data: EcobeeData, thermostat_index: int) ->
None:
34 """Initialize the thermostat."""
35 super().
__init__(data, thermostat_index)
37 f
"{self.thermostat["identifier
"]}_notify_{thermostat_index}"
40 def send_message(self, message: str, title: str |
None =
None) ->
None:
None send_message(self, str message, str|None title=None)
None __init__(self, EcobeeData data, int thermostat_index)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)