diff --git a/custom_components/honor_x3/device_tracker.py b/custom_components/honor_x3/device_tracker.py index 3bc1ba1..44ea463 100644 --- a/custom_components/honor_x3/device_tracker.py +++ b/custom_components/honor_x3/device_tracker.py @@ -6,6 +6,7 @@ from homeassistant.components.device_tracker import ( DeviceScanner, + SOURCE_TYPE_ROUTER, ) from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv @@ -63,6 +64,10 @@ def get_device_name(self, device): return client.name return None + def source_type(self): + """Return the source type, eg gps or router, of the device.""" + return SOURCE_TYPE_ROUTER + def _update_info(self): """Ensure the information from the router is up to date. diff --git a/custom_components/honor_x3/manifest.json b/custom_components/honor_x3/manifest.json index c43be0a..8d4f239 100644 --- a/custom_components/honor_x3/manifest.json +++ b/custom_components/honor_x3/manifest.json @@ -3,5 +3,5 @@ "name": "Honor 3/X3 Router", "documentation": "Integration of Honor 3, X3 router. Device tracker and reboot action.", "codeowners": ["@juacas"], - "version": "v1.0.4" + "version": "v1.0.5" }