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

Functions

dict[str, Any] async_get_config_entry_diagnostics (HomeAssistant hass, BMWConfigEntry config_entry)
 
dict[str, Any] async_get_device_diagnostics (HomeAssistant hass, BMWConfigEntry config_entry, DeviceEntry device)
 
dict vehicle_to_dict (MyBMWVehicle|None vehicle)
 

Variables

list TO_REDACT_DATA
 
list TO_REDACT_INFO = [CONF_USERNAME, CONF_PASSWORD, CONF_REFRESH_TOKEN]
 

Detailed Description

Diagnostics support for the BMW Connected Drive integration.

Function Documentation

◆ async_get_config_entry_diagnostics()

dict[str, Any] homeassistant.components.bmw_connected_drive.diagnostics.async_get_config_entry_diagnostics ( HomeAssistant  hass,
BMWConfigEntry   config_entry 
)
Return diagnostics for a config entry.

Definition at line 48 of file diagnostics.py.

◆ async_get_device_diagnostics()

dict[str, Any] homeassistant.components.bmw_connected_drive.diagnostics.async_get_device_diagnostics ( HomeAssistant  hass,
BMWConfigEntry  config_entry,
DeviceEntry   device 
)
Return diagnostics for a device.

Definition at line 74 of file diagnostics.py.

◆ vehicle_to_dict()

dict homeassistant.components.bmw_connected_drive.diagnostics.vehicle_to_dict ( MyBMWVehicle | None  vehicle)
Convert a MyBMWVehicle to a dictionary using MyBMWJSONEncoder.

Definition at line 42 of file diagnostics.py.

Variable Documentation

◆ TO_REDACT_DATA

list homeassistant.components.bmw_connected_drive.diagnostics.TO_REDACT_DATA
Initial value:
1 = [
2  "lat",
3  "latitude",
4  "lon",
5  "longitude",
6  "heading",
7  "vin",
8  "licensePlate",
9  "city",
10  "street",
11  "streetNumber",
12  "postalCode",
13  "phone",
14  "formatted",
15  "subtitle",
16 ]

Definition at line 24 of file diagnostics.py.

◆ TO_REDACT_INFO

list homeassistant.components.bmw_connected_drive.diagnostics.TO_REDACT_INFO = [CONF_USERNAME, CONF_PASSWORD, CONF_REFRESH_TOKEN]

Definition at line 23 of file diagnostics.py.