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

Public Member Functions

None __init__ (self, TessieVehicleData vehicle, str key)
 
None run (self, Callable[..., Awaitable[dict[str, Any]]] func, **Any kargs)
 
None set (self, *Any args)
 
- Public Member Functions inherited from homeassistant.components.tessie.entity.TessieBaseEntity
None __init__ (self, TessieStateUpdateCoordinator|TessieEnergySiteInfoCoordinator|TessieEnergySiteLiveCoordinator coordinator, str key)
 
Any get (self, str|None key=None, Any|None default=None)
 
- 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 Member Functions inherited from homeassistant.components.tessie.coordinator.TessieStateUpdateCoordinator
None __init__ (self, HomeAssistant hass, str api_key, str vin, dict[str, Any] data)
 
- Public Member Functions inherited from homeassistant.helpers.update_coordinator.DataUpdateCoordinator
None __init__ (self, HomeAssistant hass, logging.Logger logger, *config_entries.ConfigEntry|None|UndefinedType config_entry=UNDEFINED, str name, timedelta|None update_interval=None, Callable[[], Awaitable[_DataT]]|None update_method=None, Callable[[], Awaitable[None]]|None setup_method=None, Debouncer[Coroutine[Any, Any, None]]|None request_refresh_debouncer=None, bool always_update=True)
 
Callable[[], None] async_add_listener (self, CALLBACK_TYPE update_callback, Any context=None)
 
None async_config_entry_first_refresh (self)
 
Generator[Any] async_contexts (self)
 
None async_refresh (self)
 
None async_register_shutdown (self)
 
None async_request_refresh (self)
 
None async_set_update_error (self, Exception err)
 
None async_set_updated_data (self, _DataT data)
 
None async_shutdown (self)
 
None async_update_listeners (self)
 
timedelta|None update_interval (self)
 
None update_interval (self, timedelta|None value)
 
- Public Member Functions inherited from homeassistant.components.tessie.coordinator.TessieEnergySiteInfoCoordinator
None __init__ (self, HomeAssistant hass, EnergySpecific api)
 
- Public Member Functions inherited from homeassistant.components.tessie.coordinator.TessieEnergySiteLiveCoordinator
None __init__ (self, HomeAssistant hass, EnergySpecific api)
 

Public Attributes

 vin
 
- Public Attributes inherited from homeassistant.components.tessie.entity.TessieBaseEntity
 key
 
- Public Attributes inherited from homeassistant.components.tessie.coordinator.TessieStateUpdateCoordinator
 api_key
 
 data
 
 session
 
 vin
 
- Public Attributes inherited from homeassistant.helpers.update_coordinator.DataUpdateCoordinator
 always_update
 
 config_entry
 
 data
 
 hass
 
 last_exception
 
 last_update_success
 
 logger
 
 name
 
 setup_method
 
 update_interval
 
 update_method
 
- Public Attributes inherited from homeassistant.components.tessie.coordinator.TessieEnergySiteInfoCoordinator
 api
 
- Public Attributes inherited from homeassistant.components.tessie.coordinator.TessieEnergySiteLiveCoordinator
 api
 

Private Member Functions

None _async_update_attrs (self)
 
Any _value (self)
 

Private Attributes

 _api_key
 
 _attr_device_info
 
 _attr_unique_id
 
 _session
 

Detailed Description

Parent class for Tessie vehicle entities.

Definition at line 66 of file entity.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.tessie.entity.TessieEntity.__init__ (   self,
TessieVehicleData  vehicle,
str  key 
)
Parent class for Tessie vehicle entities.
Initialize common aspects of a Tessie vehicle entity.

Definition at line 69 of file entity.py.

Member Function Documentation

◆ _async_update_attrs()

None homeassistant.components.tessie.entity.TessieEntity._async_update_attrs (   self)
private
Update the attributes of the entity.

Reimplemented from homeassistant.components.tessie.entity.TessieBaseEntity.

Definition at line 117 of file entity.py.

◆ _value()

Any homeassistant.components.tessie.entity.TessieEntity._value (   self)
private
Return value from coordinator data.

Reimplemented from homeassistant.components.tessie.entity.TessieBaseEntity.

Definition at line 84 of file entity.py.

◆ run()

None homeassistant.components.tessie.entity.TessieEntity.run (   self,
Callable[..., Awaitable[dict[str, Any]]]  func,
**Any   kargs 
)
Run a tessie_api function and handle exceptions.

Definition at line 94 of file entity.py.

◆ set()

None homeassistant.components.tessie.entity.TessieEntity.set (   self,
*Any  args 
)
Set a value in coordinator data.

Definition at line 88 of file entity.py.

Member Data Documentation

◆ _api_key

homeassistant.components.tessie.entity.TessieEntity._api_key
private

Definition at line 77 of file entity.py.

◆ _attr_device_info

homeassistant.components.tessie.entity.TessieEntity._attr_device_info
private

Definition at line 79 of file entity.py.

◆ _attr_unique_id

homeassistant.components.tessie.entity.TessieEntity._attr_unique_id
private

Definition at line 78 of file entity.py.

◆ _session

homeassistant.components.tessie.entity.TessieEntity._session
private

Definition at line 76 of file entity.py.

◆ vin

homeassistant.components.tessie.entity.TessieEntity.vin
Initialize common aspects of a Tessie vehicle entity.

Definition at line 75 of file entity.py.


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