updated _format_location to use van van_last_known_longitude and van_last_known_latitude

This commit is contained in:
2026-03-17 12:44:05 -04:00
parent 1b3e6725ea
commit 2661127426
3 changed files with 18 additions and 38 deletions

View File

@@ -87,9 +87,7 @@ class Bot:
def _location(self, message: SignalMessage, _cmd: str) -> None:
"""Reply with current van location."""
handle_location_request(
message, self.signal, self.config.ha_url, self.config.ha_token, self.config.ha_location_entity
)
handle_location_request(message, self.signal, self.config.ha_url, self.config.ha_token)
# -- dispatch -------------------------------------------------------------
@@ -210,7 +208,6 @@ def main(
inventory_api_url=inventory_api_url,
ha_url=getenv("HA_URL"),
ha_token=getenv("HA_TOKEN"),
ha_location_entity=getenv("HA_LOCATION_ENTITY", "sensor.gps_location"),
engine=engine,
)