mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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];
|
||||
if (result.coords.altitude) {
|
||||
this._elevation = String(result.coords.altitude);
|
||||
this._elevation = String(Math.round(result.coords.altitude));
|
||||
}
|
||||
try {
|
||||
await this._reverseGeocode();
|
||||
|
Loading…
x
Reference in New Issue
Block a user