Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tesla_fleet.switch Namespace Reference

Classes

class  TeslaFleetChargeFromGridSwitchEntity
 
class  TeslaFleetChargeSwitchEntity
 
class  TeslaFleetStormModeSwitchEntity
 
class  TeslaFleetSwitchEntity
 
class  TeslaFleetSwitchEntityDescription
 
class  TeslaFleetVehicleSwitchEntity
 

Functions

None async_setup_entry (HomeAssistant hass, TeslaFleetConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

int PARALLEL_UPDATES = 0
 
 VEHICLE_CHARGE_DESCRIPTION
 

Detailed Description

Switch platform for Tesla Fleet integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tesla_fleet.switch.async_setup_entry ( HomeAssistant  hass,
TeslaFleetConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the TeslaFleet Switch platform from a config entry.

Definition at line 90 of file switch.py.

Variable Documentation

◆ PARALLEL_UPDATES

int homeassistant.components.tesla_fleet.switch.PARALLEL_UPDATES = 0

Definition at line 25 of file switch.py.

◆ VEHICLE_CHARGE_DESCRIPTION

homeassistant.components.tesla_fleet.switch.VEHICLE_CHARGE_DESCRIPTION
Initial value:
1 = TeslaFleetSwitchEntityDescription(
2  key="charge_state_user_charge_enable_request",
3  on_func=lambda api: api.charge_start(),
4  off_func=lambda api: api.charge_stop(),
5  scopes=[Scope.VEHICLE_CHARGING_CMDS, Scope.VEHICLE_CMDS],
6 )

Definition at line 82 of file switch.py.