diff --git a/src/panels/config/core/ha-config-section-general.ts b/src/panels/config/core/ha-config-section-general.ts index 2f9588e8ad..a2123ddf24 100644 --- a/src/panels/config/core/ha-config-section-general.ts +++ b/src/panels/config/core/ha-config-section-general.ts @@ -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) {