mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
Round altitude from GPS result (#17591)
This commit is contained in:
parent
88ff4c2fa8
commit
9f0b9782a0
@ -376,7 +376,7 @@ class OnboardingLocation extends LitElement {
|
|||||||
);
|
);
|
||||||
this._location = [result.coords.latitude, result.coords.longitude];
|
this._location = [result.coords.latitude, result.coords.longitude];
|
||||||
if (result.coords.altitude) {
|
if (result.coords.altitude) {
|
||||||
this._elevation = String(result.coords.altitude);
|
this._elevation = String(Math.round(result.coords.altitude));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await this._reverseGeocode();
|
await this._reverseGeocode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user