Skip to content

Commit

Permalink
Report Devicetracker type and fix codeowner id.
Browse files Browse the repository at this point in the history
  • Loading branch information
juacas committed Aug 4, 2021
1 parent 40652c2 commit da96d36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions custom_components/honor_x3/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion custom_components/honor_x3/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit da96d36

Please sign in to comment.