2022-05-24 19:44:18 +00:00
|
|
|
"""Const file for the MyBMW integration."""
|
2022-12-19 11:12:48 +00:00
|
|
|
from homeassistant.const import UnitOfLength, UnitOfVolume
|
2021-11-24 22:18:45 +00:00
|
|
|
|
2022-04-21 08:13:09 +00:00
|
|
|
DOMAIN = "bmw_connected_drive"
|
2022-05-24 19:44:18 +00:00
|
|
|
ATTRIBUTION = "Data provided by MyBMW"
|
2020-12-29 10:06:12 +00:00
|
|
|
|
2022-01-24 15:26:03 +00:00
|
|
|
ATTR_DIRECTION = "direction"
|
2022-04-21 08:13:09 +00:00
|
|
|
ATTR_VIN = "vin"
|
2022-01-24 15:26:03 +00:00
|
|
|
|
2020-12-29 10:06:12 +00:00
|
|
|
CONF_ALLOWED_REGIONS = ["china", "north_america", "rest_of_world"]
|
|
|
|
CONF_READ_ONLY = "read_only"
|
|
|
|
CONF_ACCOUNT = "account"
|
2022-05-24 19:44:18 +00:00
|
|
|
CONF_REFRESH_TOKEN = "refresh_token"
|
2023-05-17 00:03:01 +00:00
|
|
|
CONF_GCID = "gcid"
|
2020-12-29 10:06:12 +00:00
|
|
|
|
|
|
|
DATA_HASS_CONFIG = "hass_config"
|
2021-11-24 22:18:45 +00:00
|
|
|
|
|
|
|
UNIT_MAP = {
|
2022-12-15 11:42:53 +00:00
|
|
|
"KILOMETERS": UnitOfLength.KILOMETERS,
|
|
|
|
"MILES": UnitOfLength.MILES,
|
2022-12-19 11:12:48 +00:00
|
|
|
"LITERS": UnitOfVolume.LITERS,
|
|
|
|
"GALLONS": UnitOfVolume.GALLONS,
|
2021-11-24 22:18:45 +00:00
|
|
|
}
|
2023-07-01 08:41:03 +00:00
|
|
|
|
|
|
|
SCAN_INTERVALS = {
|
|
|
|
"china": 300,
|
|
|
|
"north_america": 600,
|
|
|
|
"rest_of_world": 300,
|
|
|
|
}
|