Skip to content

Commit

Permalink
Merge pull request #250 from ChristophCaina/patch-2
Browse files Browse the repository at this point in the history
Update device_tracker.py
  • Loading branch information
dvx76 authored Dec 30, 2023
2 parents da14ce2 + f0d4b7f commit 8148377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/skodaconnect/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
import logging

from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker import SourceType
from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.util import slugify
Expand Down Expand Up @@ -54,7 +54,7 @@ async def see_vehicle():
await async_see(
dev_id=dev_id,
host_name=host_name,
source_type=SOURCE_TYPE_GPS,
source_type=SourceType.GPS,
gps=instrument.state,
icon="mdi:car",
)
Expand All @@ -78,7 +78,7 @@ def longitude(self) -> float:
@property
def source_type(self):
"""Return the source type, eg gps or router, of the device."""
return SOURCE_TYPE_GPS
return SourceType.GPS

@property
def force_update(self):
Expand Down

0 comments on commit 8148377

Please sign in to comment.