Skip to content

Commit

Permalink
Release 1.4.3 (#68)
Browse files Browse the repository at this point in the history
* (deps) Change myskoda library version to v0.7.1
* (chore) Fix crowdin badge
* (bug) Fix incorrect assignment
  • Loading branch information
WebSpider authored Oct 7, 2024
1 parent 709354d commit 23cbfcd
Show file tree
Hide file tree
Showing 4 changed files with 425 additions and 385 deletions.
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

0 comments on commit 23cbfcd

Please sign in to comment.