Skip to content

Commit e830ef8

Browse files
committed
Fix homelink location protobuf
1 parent 4476395 commit e830ef8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tesla_fleet_api/vehiclesigned.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,10 @@ async def trigger_homelink(
10041004
"""Turns on HomeLink (used to open and close garage doors)."""
10051005
action = VehicleControlTriggerHomelinkAction()
10061006
if lat is not None and lon is not None:
1007-
action.location = LatLong(latitude=lat, longitude=lon)
1007+
location = LatLong()
1008+
location.latitude = lat
1009+
location.longitude = lon
1010+
action.location = location
10081011
if token is not None:
10091012
action.token = token
10101013

0 commit comments

Comments
 (0)