diff --git a/custom_components/sagemcom_fast/device_tracker.py b/custom_components/sagemcom_fast/device_tracker.py index 47e9b4e..1305f43 100644 --- a/custom_components/sagemcom_fast/device_tracker.py +++ b/custom_components/sagemcom_fast/device_tracker.py @@ -5,7 +5,7 @@ from typing import Any, Dict, Optional import async_timeout -from homeassistant.components.device_tracker import SOURCE_TYPE_ROUTER +from homeassistant.components.device_tracker import SourceType from homeassistant.components.device_tracker.config_entry import ScannerEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.restore_state import RestoreEntity @@ -107,7 +107,7 @@ def unique_id(self) -> str: @property def source_type(self) -> str: """Return the source type, eg gps or router, of the device.""" - return SOURCE_TYPE_ROUTER + return SourceType.ROUTER @property def is_connected(self) -> bool: