Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.volvooncall.models.VolvoData Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, Connection connection, ConfigEntry entry)
 
def auth_is_valid (self)
 
def discover_vehicle (self, vehicle)
 
def instrument (self, vin, component, attr, slug_attr)
 
def update (self)
 
def vehicle_name (self, vehicle)
 

Public Attributes

 config_entry
 
 connection
 
 hass
 

Detailed Description

Hold component state.

Definition at line 24 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.volvooncall.models.VolvoData.__init__ (   self,
HomeAssistant  hass,
Connection  connection,
ConfigEntry  entry 
)
Initialize the component state.

Definition at line 27 of file models.py.

Member Function Documentation

◆ auth_is_valid()

def homeassistant.components.volvooncall.models.VolvoData.auth_is_valid (   self)
Check if provided username/password/region authenticate.

Definition at line 95 of file models.py.

◆ discover_vehicle()

def homeassistant.components.volvooncall.models.VolvoData.discover_vehicle (   self,
  vehicle 
)
Load relevant platforms.

Definition at line 59 of file models.py.

◆ instrument()

def homeassistant.components.volvooncall.models.VolvoData.instrument (   self,
  vin,
  component,
  attr,
  slug_attr 
)
Return corresponding instrument.

Definition at line 40 of file models.py.

◆ update()

def homeassistant.components.volvooncall.models.VolvoData.update (   self)
Update status from the online service.

Definition at line 82 of file models.py.

◆ vehicle_name()

def homeassistant.components.volvooncall.models.VolvoData.vehicle_name (   self,
  vehicle 
)
Provide a friendly name for a vehicle.

Definition at line 51 of file models.py.

Member Data Documentation

◆ config_entry

homeassistant.components.volvooncall.models.VolvoData.config_entry

Definition at line 37 of file models.py.

◆ connection

homeassistant.components.volvooncall.models.VolvoData.connection

Definition at line 38 of file models.py.

◆ hass

homeassistant.components.volvooncall.models.VolvoData.hass

Definition at line 34 of file models.py.


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