1 """The radiotherm integration base entity."""
3 from abc
import abstractmethod
10 from .coordinator
import RadioThermUpdateCoordinator
11 from .data
import RadioThermUpdate
15 """Base class for radiotherm entities."""
17 _attr_has_entity_name =
True
19 def __init__(self, coordinator: RadioThermUpdateCoordinator) ->
None:
20 """Initialize the entity."""
23 self.
devicedevice = coordinator.init_data.tstat
27 manufacturer=
"Radio Thermostats",
34 def data(self) -> RadioThermUpdate:
35 """Returnt the last update."""
36 return self.coordinator.data
41 """Update and validate the data from the thermostat."""
None _handle_coordinator_update(self)
None __init__(self, RadioThermUpdateCoordinator coordinator)