File tree 2 files changed +18
-13
lines changed
2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ const pageIcons = connect(
182
182
twelveSoc,
183
183
} ,
184
184
} ,
185
- bl : Bluelink
185
+ bl : Bluelink ,
186
186
) => {
187
187
const lastSeen = new Date ( lastUpdated )
188
188
const batteryIcon = isCharging ? 'charging' : 'not-charging'
Original file line number Diff line number Diff line change @@ -156,20 +156,25 @@ export async function loadConfigScreen() {
156
156
manufacturer : manufacturer ,
157
157
vin : vin ,
158
158
} ) => {
159
+ // read and combine with current saved config as other config screens may have changed settings (custom climates etc)
160
+ const config = getConfig ( )
159
161
setConfig ( {
160
- auth : {
161
- username : username ,
162
- password : password ,
163
- region : region ,
164
- pin : pin ,
162
+ ...config ,
163
+ ...{
164
+ auth : {
165
+ username : username ,
166
+ password : password ,
167
+ region : region ,
168
+ pin : pin ,
169
+ } ,
170
+ tempType : tempType ,
171
+ climateTempCold : climateTempCold ,
172
+ climateTempWarm : climateTempWarm ,
173
+ allowWidgetRemoteRefresh : allowWidgetRemoteRefresh ,
174
+ debugLogging : debugLogging ,
175
+ manufacturer : manufacturer ?. toLowerCase ( ) ,
176
+ vin : vin ? vin . toUpperCase ( ) : undefined ,
165
177
} ,
166
- tempType : tempType ,
167
- climateTempCold : climateTempCold ,
168
- climateTempWarm : climateTempWarm ,
169
- allowWidgetRemoteRefresh : allowWidgetRemoteRefresh ,
170
- debugLogging : debugLogging ,
171
- manufacturer : manufacturer ?. toLowerCase ( ) ,
172
- vin : vin ? vin . toUpperCase ( ) : undefined ,
173
178
} as Config )
174
179
} ,
175
180
onStateChange : ( state , previousState ) : Partial < FlattenedConfig > => {
You can’t perform that action at this time.
0 commit comments