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

Public Member Functions

def __init__ (self, data, sensor_type, coordinator=None)
 
def async_added_to_hass (self)
 
def available (self)
 
dict[str, Any]|None extra_state_attributes (self)
 

Private Member Functions

dict _attributes (self)
 
PlaatoDevice _sensor_data (self)
 
str _sensor_name (self)
 

Static Private Member Functions

def _to_snake_case (dict dictionary)
 

Private Attributes

 _attr_device_info
 
 _attr_name
 
 _attr_unique_id
 
 _coordinator
 
 _device_id
 
 _device_name
 
 _device_type
 
 _entry_data
 
 _sensor_type
 

Static Private Attributes

bool _attr_should_poll = False
 

Detailed Description

Representation of a Plaato Entity.

Definition at line 23 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.plaato.entity.PlaatoEntity.__init__ (   self,
  data,
  sensor_type,
  coordinator = None 
)

Member Function Documentation

◆ _attributes()

dict homeassistant.components.plaato.entity.PlaatoEntity._attributes (   self)
private

Definition at line 50 of file entity.py.

◆ _sensor_data()

PlaatoDevice homeassistant.components.plaato.entity.PlaatoEntity._sensor_data (   self)
private

Definition at line 58 of file entity.py.

◆ _sensor_name()

str homeassistant.components.plaato.entity.PlaatoEntity._sensor_name (   self)
private

Definition at line 54 of file entity.py.

◆ _to_snake_case()

def homeassistant.components.plaato.entity.PlaatoEntity._to_snake_case ( dict  dictionary)
staticprivate

Definition at line 98 of file entity.py.

◆ async_added_to_hass()

def homeassistant.components.plaato.entity.PlaatoEntity.async_added_to_hass (   self)
When entity is added to hass.

Definition at line 82 of file entity.py.

◆ available()

def homeassistant.components.plaato.entity.PlaatoEntity.available (   self)
Return if sensor is available.

Definition at line 76 of file entity.py.

◆ extra_state_attributes()

dict[str, Any] | None homeassistant.components.plaato.entity.PlaatoEntity.extra_state_attributes (   self)
Return the state attributes of the monitored installation.

Definition at line 64 of file entity.py.

Member Data Documentation

◆ _attr_device_info

homeassistant.components.plaato.entity.PlaatoEntity._attr_device_info
private

Definition at line 41 of file entity.py.

◆ _attr_name

homeassistant.components.plaato.entity.PlaatoEntity._attr_name
private

Definition at line 37 of file entity.py.

◆ _attr_should_poll

bool homeassistant.components.plaato.entity.PlaatoEntity._attr_should_poll = False
staticprivate

Definition at line 26 of file entity.py.

◆ _attr_unique_id

homeassistant.components.plaato.entity.PlaatoEntity._attr_unique_id
private

Definition at line 36 of file entity.py.

◆ _coordinator

homeassistant.components.plaato.entity.PlaatoEntity._coordinator
private

Definition at line 30 of file entity.py.

◆ _device_id

homeassistant.components.plaato.entity.PlaatoEntity._device_id
private

Definition at line 33 of file entity.py.

◆ _device_name

homeassistant.components.plaato.entity.PlaatoEntity._device_name
private

Definition at line 35 of file entity.py.

◆ _device_type

homeassistant.components.plaato.entity.PlaatoEntity._device_type
private

Definition at line 34 of file entity.py.

◆ _entry_data

homeassistant.components.plaato.entity.PlaatoEntity._entry_data
private

Definition at line 31 of file entity.py.

◆ _sensor_type

homeassistant.components.plaato.entity.PlaatoEntity._sensor_type
private

Definition at line 32 of file entity.py.


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