forked from peter/volvo2mqtt
Fix and unit for and
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
## v1.12.1
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes:
|
||||||
|
|
||||||
|
- Fix `trip_speed` and `trip_distance` unit for `en_US` and `en_GB` #301
|
||||||
|
|
||||||
## v1.12.0
|
## v1.12.0
|
||||||
|
|
||||||
### 🚀 Features:
|
### 🚀 Features:
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: "Volvo2Mqtt"
|
name: "Volvo2Mqtt"
|
||||||
description: "Volvo AAOS MQTT bridge"
|
description: "Volvo AAOS MQTT bridge"
|
||||||
version: "1.12.0"
|
version: "1.12.1"
|
||||||
slug: "volvo2mqtt"
|
slug: "volvo2mqtt"
|
||||||
init: false
|
init: false
|
||||||
url: "https://github.com/Dielee/volvo2mqtt"
|
url: "https://github.com/Dielee/volvo2mqtt"
|
||||||
|
|||||||
+7
-3
@@ -1,6 +1,6 @@
|
|||||||
from config import settings
|
from config import settings
|
||||||
|
|
||||||
VERSION = "v1.12.0"
|
VERSION = "v1.12.1"
|
||||||
|
|
||||||
OAUTH_TOKEN_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
|
OAUTH_TOKEN_URL = "https://volvoid.eu.volvocars.com/as/token.oauth2"
|
||||||
OAUTH_AUTH_URL = "https://volvoid.eu.volvocars.com/as/authorization.oauth2"
|
OAUTH_AUTH_URL = "https://volvoid.eu.volvocars.com/as/authorization.oauth2"
|
||||||
@@ -41,7 +41,9 @@ units = {
|
|||||||
"odometer": {"unit": LENGTH_MILES},
|
"odometer": {"unit": LENGTH_MILES},
|
||||||
"average_speed": {"unit": SPEED_MILES_PER_HOUR},
|
"average_speed": {"unit": SPEED_MILES_PER_HOUR},
|
||||||
"distance_to_empty": {"unit": LENGTH_MILES},
|
"distance_to_empty": {"unit": LENGTH_MILES},
|
||||||
"distance_to_service": {"unit": LENGTH_MILES}
|
"distance_to_service": {"unit": LENGTH_MILES},
|
||||||
|
"trip_distance": {"unit": LENGTH_MILES},
|
||||||
|
"trip_speed": {"unit": SPEED_MILES_PER_HOUR}
|
||||||
},
|
},
|
||||||
"en_US": {
|
"en_US": {
|
||||||
"divider": 1.60934,
|
"divider": 1.60934,
|
||||||
@@ -49,7 +51,9 @@ units = {
|
|||||||
"odometer": {"unit": LENGTH_MILES},
|
"odometer": {"unit": LENGTH_MILES},
|
||||||
"average_speed": {"unit": SPEED_MILES_PER_HOUR},
|
"average_speed": {"unit": SPEED_MILES_PER_HOUR},
|
||||||
"distance_to_empty": {"unit": LENGTH_MILES},
|
"distance_to_empty": {"unit": LENGTH_MILES},
|
||||||
"distance_to_service": {"unit": LENGTH_MILES}
|
"distance_to_service": {"unit": LENGTH_MILES},
|
||||||
|
"trip_distance": {"unit": LENGTH_MILES},
|
||||||
|
"trip_speed": {"unit": SPEED_MILES_PER_HOUR}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user