Skip to content

Commit

Permalink
Merge pull request #238 from viddi87/patch-3
Browse files Browse the repository at this point in the history
Update device_tracker.py
  • Loading branch information
mitch-dc authored Jan 30, 2024
2 parents 04e05f4 + 4fb98e8 commit 778f8c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/volkswagen_we_connect_id/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from weconnect import weconnect

from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker import SourceType.GPS
from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.core import HomeAssistant
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -76,7 +76,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 icon(self):
Expand Down

0 comments on commit 778f8c2

Please sign in to comment.