mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Fix General Config Zone update on Mobile (#13011)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
62d0882e82
commit
08eff0509a
@ -273,6 +273,15 @@ class HaConfigSectionGeneral extends LitElement {
|
|||||||
}
|
}
|
||||||
button.progress = true;
|
button.progress = true;
|
||||||
|
|
||||||
|
let locationConfig;
|
||||||
|
|
||||||
|
if (this._location) {
|
||||||
|
locationConfig = {
|
||||||
|
latitude: this._location[0],
|
||||||
|
longitude: this._location[1],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await saveCoreConfig(this.hass, {
|
await saveCoreConfig(this.hass, {
|
||||||
currency: this._currency,
|
currency: this._currency,
|
||||||
@ -280,6 +289,7 @@ class HaConfigSectionGeneral extends LitElement {
|
|||||||
unit_system: this._unitSystem,
|
unit_system: this._unitSystem,
|
||||||
time_zone: this._timeZone,
|
time_zone: this._timeZone,
|
||||||
location_name: this._name,
|
location_name: this._name,
|
||||||
|
...locationConfig,
|
||||||
});
|
});
|
||||||
button.actionSuccess();
|
button.actionSuccess();
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user