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

Namespaces

 binary_sensor
 
 button
 
 config_flow
 
 const
 
 coordinator
 
 device_tracker
 
 diagnostics
 
 entity
 
 lock
 
 notify
 
 number
 
 select
 
 sensor
 
 switch
 

Classes

class  BMWData
 

Functions

bool _async_migrate_entries (HomeAssistant hass, BMWConfigEntry config_entry)
 
None _async_migrate_options_from_data_if_missing (HomeAssistant hass, ConfigEntry entry)
 
bool async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 BMWConfigEntry
 
dictionary DEFAULT_OPTIONS
 
list PLATFORMS
 
 SERVICE_SCHEMA
 
string SERVICE_UPDATE_STATE = "update_state"
 

Detailed Description

Reads vehicle status from MyBMW portal.

Function Documentation

◆ _async_migrate_entries()

bool homeassistant.components.bmw_connected_drive._async_migrate_entries ( HomeAssistant  hass,
BMWConfigEntry   config_entry 
)
private
Migrate old entry.

Definition at line 79 of file __init__.py.

◆ _async_migrate_options_from_data_if_missing()

None homeassistant.components.bmw_connected_drive._async_migrate_options_from_data_if_missing ( HomeAssistant  hass,
ConfigEntry   entry 
)
private

Definition at line 63 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.bmw_connected_drive.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Set up BMW Connected Drive from a config entry.

Definition at line 130 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.bmw_connected_drive.async_unload_entry ( HomeAssistant  hass,
ConfigEntry  entry 
)
Unload a config entry.

Definition at line 178 of file __init__.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 23 of file __init__.py.

◆ BMWConfigEntry

homeassistant.components.bmw_connected_drive.BMWConfigEntry

Definition at line 52 of file __init__.py.

◆ DEFAULT_OPTIONS

dictionary homeassistant.components.bmw_connected_drive.DEFAULT_OPTIONS
Initial value:
1 = {
2  CONF_READ_ONLY: False,
3 }

Definition at line 33 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.bmw_connected_drive.PLATFORMS
Initial value:
1 = [
2  Platform.BINARY_SENSOR,
3  Platform.BUTTON,
4  Platform.DEVICE_TRACKER,
5  Platform.LOCK,
6  Platform.NOTIFY,
7  Platform.NUMBER,
8  Platform.SELECT,
9  Platform.SENSOR,
10  Platform.SWITCH,
11 ]

Definition at line 37 of file __init__.py.

◆ SERVICE_SCHEMA

homeassistant.components.bmw_connected_drive.SERVICE_SCHEMA
Initial value:
1 = vol.Schema(
2  vol.Any(
3  {vol.Required(ATTR_VIN): cv.string},
4  {vol.Required(CONF_DEVICE_ID): cv.string},
5  )
6 )

Definition at line 26 of file __init__.py.

◆ SERVICE_UPDATE_STATE

string homeassistant.components.bmw_connected_drive.SERVICE_UPDATE_STATE = "update_state"

Definition at line 49 of file __init__.py.