Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bre77 committed Mar 25, 2024
1 parent ff3ffe7 commit 9dc241c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="teslemetry_stream",
version="0.2.1",
version="0.2.2",
author="Brett Adams",
author_email="[email protected]",
description="Teslemetry Streaming API library for Python",
Expand Down
6 changes: 3 additions & 3 deletions teslemetry_stream/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def change_hostname(self, hostname: str, vin: str | None = None) -> dict:
f"https://api.teslemetry.com/api/config/{vin or self.vin}",
headers=self._headers,
json={"hostname": hostname},
raise_for_status=True,
raise_for_status=False,
)
if resp.ok:
self.server = hostname
Expand All @@ -114,7 +114,7 @@ async def update_fields(self, fields: dict, vin: str | None = None) -> dict:
f"https://api.teslemetry.com/api/config/{vin or self.vin}",
headers=self._headers,
json={"fields": fields},
raise_for_status=True,
raise_for_status=False,
)
if resp.ok:
self.fields = {**self.fields, **fields}
Expand All @@ -126,7 +126,7 @@ async def replace_fields(self, fields: dict, vin: str | None = None) -> dict:
f"https://api.teslemetry.com/api/config/{vin or self.vin}",
headers=self._headers,
json={"fields": fields},
raise_for_status=True,
raise_for_status=False,
)
if resp.ok:
self.fields = fields
Expand Down

0 comments on commit 9dc241c

Please sign in to comment.