From 22dd2b69852fccfbe7f46ffa969a044cdd419b92 Mon Sep 17 00:00:00 2001 From: cdnninja Date: Sun, 3 Mar 2024 09:34:03 -0700 Subject: [PATCH] fix: correct sourcetype for GPS --- custom_components/audiconnect/device_tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/audiconnect/device_tracker.py b/custom_components/audiconnect/device_tracker.py index 9b286f16..9da512ab 100644 --- a/custom_components/audiconnect/device_tracker.py +++ b/custom_components/audiconnect/device_tracker.py @@ -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, @@ -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."""