mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +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;
|
||||
|
||||
let locationConfig;
|
||||
|
||||
if (this._location) {
|
||||
locationConfig = {
|
||||
latitude: this._location[0],
|
||||
longitude: this._location[1],
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
await saveCoreConfig(this.hass, {
|
||||
currency: this._currency,
|
||||
@ -280,6 +289,7 @@ class HaConfigSectionGeneral extends LitElement {
|
||||
unit_system: this._unitSystem,
|
||||
time_zone: this._timeZone,
|
||||
location_name: this._name,
|
||||
...locationConfig,
|
||||
});
|
||||
button.actionSuccess();
|
||||
} catch (err: any) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user