skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
73 stars 10 forks source link

Fix unavailable device tracker #11

Closed WebSpider closed 1 month ago

WebSpider commented 1 month ago

When a car does not transmit it's coordinates, or has coordinates turned off, this causes an error in the current integration. Should be fixed with this update.

Prior99 commented 1 month ago

There is unrelated changes in the poetry.lock file. I would suggest to search for a position with type == PositionType.VEHICLE instead of accessing the first element.

Prior99 commented 1 month ago

I rebased this and added a check to whether the position is of type PositionType.VEHICLE.