Skip to content

Commit

Permalink
Merge pull request #233 from cdnninja/master
Browse files Browse the repository at this point in the history
fix: correct sourcetype for GPS
  • Loading branch information
cdnninja committed Mar 3, 2024
2 parents e7604b2 + 22dd2b6 commit 9214fa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/audiconnect/device_tracker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Support for tracking an Audi."""
import logging

from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker import SourceType
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
Expand Down Expand Up @@ -79,7 +79,7 @@ def should_poll(self):
@property
def source_type(self):
"""Return the source type, eg gps or router, of the device."""
return SOURCE_TYPE_GPS
return SourceType.GPS

async def async_added_to_hass(self):
"""Register state update callback."""
Expand Down

0 comments on commit 9214fa4

Please sign in to comment.