From 4fb98e84da8d1232e13f4c8f4d8af62882974012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=C3=B0ar=20L?= Date: Fri, 19 Jan 2024 20:39:16 +0100 Subject: [PATCH] Update device_tracker.py update deprecated constants --- custom_components/volkswagen_we_connect_id/device_tracker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/volkswagen_we_connect_id/device_tracker.py b/custom_components/volkswagen_we_connect_id/device_tracker.py index 07fca62..a6dcc0c 100644 --- a/custom_components/volkswagen_we_connect_id/device_tracker.py +++ b/custom_components/volkswagen_we_connect_id/device_tracker.py @@ -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 @@ -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):