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

Classes

class  BMWSwitch
 
class  BMWSwitchEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, BMWConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary CHARGING_STATE_ON
 
 coordinator = config_entry.runtime_data.coordinator
 
 is_available
 
 key
 
 remote_service_off
 
 remote_service_on
 
 translation_key
 
 value_fn
 

Detailed Description

Switch platform for BMW.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.bmw_connected_drive.switch.async_setup_entry ( HomeAssistant  hass,
BMWConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)

Definition at line 64 of file switch.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.bmw_connected_drive.switch._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file switch.py.

◆ CHARGING_STATE_ON

dictionary homeassistant.components.bmw_connected_drive.switch.CHARGING_STATE_ON
Initial value:
1 = {
2  ChargingState.CHARGING,
3  ChargingState.COMPLETE,
4  ChargingState.FULLY_CHARGED,
5  ChargingState.FINISHED_FULLY_CHARGED,
6  ChargingState.FINISHED_NOT_FULL,
7  ChargingState.TARGET_REACHED,
8 }

Definition at line 35 of file switch.py.

◆ coordinator

homeassistant.components.bmw_connected_drive.switch.coordinator = config_entry.runtime_data.coordinator
Set up the MyBMW switch from config entry.

Definition at line 70 of file switch.py.

◆ is_available

homeassistant.components.bmw_connected_drive.switch.is_available

Definition at line 48 of file switch.py.

◆ key

homeassistant.components.bmw_connected_drive.switch.key

Definition at line 46 of file switch.py.

◆ remote_service_off

homeassistant.components.bmw_connected_drive.switch.remote_service_off

Definition at line 51 of file switch.py.

◆ remote_service_on

homeassistant.components.bmw_connected_drive.switch.remote_service_on

Definition at line 50 of file switch.py.

◆ translation_key

homeassistant.components.bmw_connected_drive.switch.translation_key

Definition at line 47 of file switch.py.

◆ value_fn

homeassistant.components.bmw_connected_drive.switch.value_fn

Definition at line 49 of file switch.py.