diff --git a/teslemetry_stream/stream.py b/teslemetry_stream/stream.py index 5158713..158b05e 100644 --- a/teslemetry_stream/stream.py +++ b/teslemetry_stream/stream.py @@ -56,13 +56,16 @@ def connected(self) -> bool: async def get_config(self, vin: str | None = None) -> None: """Get the current stream config.""" - await self.find_server() + if not self.server: + await self.find_server() + if hasattr(self, 'vehicle'): + await self.vehicle.get_config() async def find_server(self) -> None: """Find the server using metadata.""" req = await self._session.get( - f"https://api.teslemetry.com/api/metadata", + "https://api.teslemetry.com/api/metadata", headers=self._headers, raise_for_status=True, )