* Fix BMW ConnectedDrive, update to My BMW API * Use const device classes * Implement native_value via EntityDescription * Use device class const, reomve device_class from charging_status * Cleanup * Remove max_range_electric * Revert removing sensor name & unique_id * Add region china again, update bimmer_connected * Update to bimmer_connected==0.8.2 Co-authored-by: rikroe <rikroe@users.noreply.github.com>
25 lines
585 B
Python
25 lines
585 B
Python
"""Const file for the BMW Connected Drive integration."""
|
|
from homeassistant.const import (
|
|
LENGTH_KILOMETERS,
|
|
LENGTH_MILES,
|
|
VOLUME_GALLONS,
|
|
VOLUME_LITERS,
|
|
)
|
|
|
|
ATTRIBUTION = "Data provided by BMW Connected Drive"
|
|
|
|
CONF_ALLOWED_REGIONS = ["china", "north_america", "rest_of_world"]
|
|
CONF_READ_ONLY = "read_only"
|
|
CONF_USE_LOCATION = "use_location"
|
|
|
|
CONF_ACCOUNT = "account"
|
|
|
|
DATA_HASS_CONFIG = "hass_config"
|
|
DATA_ENTRIES = "entries"
|
|
|
|
UNIT_MAP = {
|
|
"KILOMETERS": LENGTH_KILOMETERS,
|
|
"MILES": LENGTH_MILES,
|
|
"LITERS": VOLUME_LITERS,
|
|
"GALLONS": VOLUME_GALLONS,
|
|
}
|