1 """Support for radiotherm switches."""
3 from __future__
import annotations
12 from .const
import DOMAIN
13 from .coordinator
import RadioThermUpdateCoordinator
14 from .entity
import RadioThermostatEntity
22 async_add_entities: AddEntitiesCallback,
24 """Set up switches for a radiotherm device."""
25 coordinator: RadioThermUpdateCoordinator = hass.data[DOMAIN][entry.entry_id]
30 """Provides radiotherm hold switch support."""
32 _attr_translation_key =
"hold"
34 def __init__(self, coordinator: RadioThermUpdateCoordinator) ->
None:
35 """Initialize the hold mode switch."""
41 """Update and validate the data from the thermostat."""
57 """Enable permanent hold."""
61 """Disable permanent hold."""
RadioThermUpdate data(self)
None async_turn_off(self, **Any kwargs)
None __init__(self, RadioThermUpdateCoordinator coordinator)
None _set_hold(self, bool hold)
None async_turn_on(self, **Any kwargs)
None _async_set_hold(self, bool hold)
None async_write_ha_state(self)
None async_request_refresh(self)
None async_setup_entry(HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)