Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.3 #68

Merged
merged 3 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Version](https://img.shields.io/github/v/release/skodaconnect/homeassistant-myskoda)
![Downloads](https://img.shields.io/github/downloads/skodaconnect/homeassistant-myskoda/total)
![Contributors](https://img.shields.io/github/contributors/skodaconnect/homeassistant-myskoda)
![Translation](https://badges.crowdin.net/homeassistant-myskoda/localized.svg)(https://crowdin.com/project/homeassistant-myskoda)
![Translation](https://badges.crowdin.net/homeassistant-myskoda/localized.svg)

# MySkoda Integration for Skoda vehicles compatible with MySkoda-App.

Expand Down
8 changes: 5 additions & 3 deletions custom_components/myskoda/device_tracker.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""Device Tracker entities for MySkoda."""

from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.components.device_tracker.config_entry import (
TrackerEntity,
TrackerEntityDescription,
)
from homeassistant.components.device_tracker.const import SourceType
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import DiscoveryInfoType
from myskoda.models.info import CapabilityId
Expand Down Expand Up @@ -35,7 +37,7 @@ class DeviceTracker(MySkodaEntity, TrackerEntity):

def __init__(self, coordinator: MySkodaDataUpdateCoordinator, vin: str) -> None: # noqa: D107
title = coordinator.data.vehicle.info.specification.title
self.entity_description = EntityDescription(
self.entity_description = TrackerEntityDescription(
name=title,
key=f"{vin}_device_tracker",
translation_key="device_tracker",
Expand Down
Loading
Loading