mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Use LENGTH_METERS constant (#34110)
This commit is contained in:
@@ -56,6 +56,7 @@ from homeassistant.const import (
|
||||
EVENT_STATE_CHANGED,
|
||||
EVENT_TIME_CHANGED,
|
||||
EVENT_TIMER_OUT_OF_SYNC,
|
||||
LENGTH_METERS,
|
||||
MATCH_ALL,
|
||||
__version__,
|
||||
)
|
||||
@@ -1324,7 +1325,7 @@ class Config:
|
||||
Async friendly.
|
||||
"""
|
||||
return self.units.length(
|
||||
location.distance(self.latitude, self.longitude, lat, lon), "m"
|
||||
location.distance(self.latitude, self.longitude, lat, lon), LENGTH_METERS
|
||||
)
|
||||
|
||||
def path(self, *path: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user