Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.smarttub.entity.SmartTubSensorBase Class Reference
Inheritance diagram for homeassistant.components.smarttub.entity.SmartTubSensorBase:
[legend]
Collaboration diagram for homeassistant.components.smarttub.entity.SmartTubSensorBase:
[legend]

Public Member Functions

def __init__ (self, coordinator, spa, sensor_name, state_key)
 
- Public Member Functions inherited from homeassistant.components.smarttub.entity.SmartTubEntity
None __init__ (self, DataUpdateCoordinator coordinator, smarttub.Spa spa, entity_name)
 
smarttub.SpaState spa_status (self)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.CoordinatorEntity
None __init__ (self, _DataUpdateCoordinatorT coordinator, Any context=None)
 
None async_update (self)
 
bool available (self)
 

Private Member Functions

def _state (self)
 

Private Attributes

 _state_key
 

Additional Inherited Members

- Public Attributes inherited from homeassistant.components.smarttub.entity.SmartTubEntity
 spa
 

Detailed Description

Base class for SmartTub sensors.

Definition at line 45 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.smarttub.entity.SmartTubSensorBase.__init__ (   self,
  coordinator,
  spa,
  sensor_name,
  state_key 
)
Initialize the entity.

Definition at line 48 of file entity.py.

Member Function Documentation

◆ _state()

def homeassistant.components.smarttub.entity.SmartTubSensorBase._state (   self)
private
Retrieve the underlying state from the spa.

Definition at line 54 of file entity.py.

Member Data Documentation

◆ _state_key

homeassistant.components.smarttub.entity.SmartTubSensorBase._state_key
private

Definition at line 51 of file entity.py.


The documentation for this class was generated from the following file: