Skip to content

Commit e2349e1

Browse files
committed
Fix URL to remove trailing slash
1 parent fa0b2b7 commit e2349e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

teslemetry_stream/stream.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@ async def connect(self) -> None:
154154
await self.get_config()
155155

156156
LOGGER.debug("Connecting to %s", self.server)
157+
url = f"https://{self.server}/sse"
158+
if self.vin:
159+
url += f"/{self.vin}"
157160
self._response = await self._session.get(
158-
f"https://{self.server}/sse/{self.vin or ''}",
161+
url,
159162
headers=self._headers,
160163
raise_for_status=True,
161164
timeout=aiohttp.ClientTimeout(

0 commit comments

Comments
 (0)