Skip to content

Commit

Permalink
Lexus Work 1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitOldGrumpy authored and GitOldGrumpy committed Jan 24, 2024
1 parent 43c8189 commit 2793d5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion mytoyota/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ async def request_raw( # noqa: PLR0913
"guid": self._uuid,
"authorization": f"Bearer {self._token}",
"x-channel": "ONEAPP",
"x-brand": "T",
"x-appbrand": "L",
"brand": "L",
"x-brand": "L",
"user-agent": "okhttp/4.10.0",
},
)
Expand Down
2 changes: 1 addition & 1 deletion mytoyota/models/endpoints/vehicle_guid.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class VehicleGuidModel(BaseModel):
head_unit: _HeadUnitModel = Field(alias="headUnit")
hw_type: Optional[Any] = Field(alias="hwType") # TODO unsure what this returns
image: str
imei: str
imei: Optional[str] = None
katashiki_code: str = Field(alias="katashikiCode")
manufactured_date: date = Field(alias="manufacturedDate")
manufactured_code: str = Field(alias="manufacturerCode")
Expand Down
5 changes: 1 addition & 4 deletions simple_client_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,4 @@ async def get_information():
# Dump all the information collected so far:
# pp.pprint(car._dump_all())


loop = asyncio.get_event_loop()
loop.run_until_complete(get_information())
loop.close()
asyncio.run(get_information())

0 comments on commit 2793d5b

Please sign in to comment.