Skip to content

Commit 666a38e

Browse files
committed
Use config location instead of vehicles
1 parent 8eaddbf commit 666a38e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

homeassistant/components/teslemetry/button.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class TeslemetryButtonEntityDescription(ButtonEntityDescription):
5050
key="homelink",
5151
func=lambda self: handle_vehicle_command(
5252
self.api.trigger_homelink(
53-
lat=self.coordinator.data["drive_state_latitude"],
54-
lon=self.coordinator.data["drive_state_longitude"],
53+
lat=self.hass.config.latitude,
54+
lon=self.hass.config.longitude,
5555
)
5656
),
5757
),

0 commit comments

Comments
 (0)