Merge branch 'release/0.9.0'

This commit is contained in:
jwu-fisker
2023-06-12 20:24:21 -07:00
parent 8b1fff2910
commit faf0d7e75a
26 changed files with 1238 additions and 124 deletions

View File

@@ -200,12 +200,12 @@ export const VehicleProvider = ({ children }) => {
}
};
const uploadConfig = async (vin, token) => {
const uploadConfig = async (vin, forced, token) => {
try {
setBusy(true);
validateVIN(vin);
const result = await api.updateConfig(vin, token);
const result = await api.updateConfig(vin, forced, token);
if (result.error)
throw new Error(`Update vehicle error. ${result.message}`);
return result;

View File

@@ -37,6 +37,7 @@ let vehicleState = {
online: false,
online_hmi: true,
battery: {
total_mileage_odometer: 12000,
percent: 95,
},
max_range: {