Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[Feature request] add image of car as icon to device_tracker #1

Open
sonar98 opened this issue Sep 9, 2024 · 0 comments
Open

[Feature request] add image of car as icon to device_tracker #1

sonar98 opened this issue Sep 9, 2024 · 0 comments

Comments

@sonar98
Copy link

sonar98 commented Sep 9, 2024

In the Skodaconnect version the device_tracker icon shows the image that is available from the API.
image

I think this part of the code in the init.py is getting this image:
`

    if "position" in self.attribute:
        # Try to use small thumbnail first hand, else fallback to fullsize
        if self.vehicle.is_model_image_small_supported:
            attributes["entity_picture"] = self.vehicle.model_image_small
        elif self.vehicle.is_model_image_large_supported:
            attributes["entity_picture"] = self.vehicle.model_image_large

    return attributes

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant