1 """Support for Steamist switches."""
3 from __future__
import annotations
12 from .const
import DOMAIN
13 from .coordinator
import SteamistDataUpdateCoordinator
14 from .entity
import SteamistEntity
18 translation_key=
"steam_active",
24 config_entry: ConfigEntry,
25 async_add_entities: AddEntitiesCallback,
28 coordinator: SteamistDataUpdateCoordinator = hass.data[DOMAIN][
35 """Representation of a Steamist steam switch."""
39 """Return if the steam is active."""
40 return self.
_status_status.active
43 """Turn the steam on."""
44 await self.coordinator.client.async_turn_on_steam()
48 """Turn the steam off."""
49 await self.coordinator.client.async_turn_off_steam()
SteamistStatus _status(self)
None async_turn_on(self, **Any kwargs)
None async_turn_off(self, **Any kwargs)
None async_request_refresh(self)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)