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

Public Member Functions

None __init__ (self, DataUpdateCoordinator coordinator, ConfigEntry entry, EntityDescription description)
 
None async_added_to_hass (self)
 
None update_from_latest_data (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)
 

Public Attributes

 entity_description
 

Private Attributes

 _attr_extra_state_attributes
 
 _entry
 

Detailed Description

Define a generic AirVisual entity.

Definition at line 14 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.airvisual.entity.AirVisualEntity.__init__ (   self,
DataUpdateCoordinator  coordinator,
ConfigEntry  entry,
EntityDescription  description 
)
Initialize.

Definition at line 17 of file entity.py.

Member Function Documentation

◆ async_added_to_hass()

None homeassistant.components.airvisual.entity.AirVisualEntity.async_added_to_hass (   self)
Register callbacks.

Definition at line 30 of file entity.py.

◆ update_from_latest_data()

None homeassistant.components.airvisual.entity.AirVisualEntity.update_from_latest_data (   self)
Update the entity from the latest data.

Reimplemented in homeassistant.components.airvisual.sensor.AirVisualGeographySensor.

Definition at line 45 of file entity.py.

Member Data Documentation

◆ _attr_extra_state_attributes

homeassistant.components.airvisual.entity.AirVisualEntity._attr_extra_state_attributes
private

Definition at line 26 of file entity.py.

◆ _entry

homeassistant.components.airvisual.entity.AirVisualEntity._entry
private

Definition at line 27 of file entity.py.

◆ entity_description

homeassistant.components.airvisual.entity.AirVisualEntity.entity_description

Definition at line 28 of file entity.py.


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