Added test for Owntracks waypoints import
This commit is contained in:
1 parent
1ada7d6211
commit
e6b7511e7d
2 files changed
+38
-2
No files matched your search
@@ -36,6 +36,7 @@ VALIDATE_TRANSITION = 'transition'
|
||||
|
||||
CONF_WAYPOINT_IMPORT_USER = 'waypoint_import_user'
|
||||
|
||||
|
||||
def setup_scanner(hass, config, see):
|
||||
"""Setup an OwnTracks tracker."""
|
||||
max_gps_accuracy = config.get(CONF_MAX_GPS_ACCURACY)
|
||||
@@ -218,7 +219,7 @@ def setup_scanner(hass, config, see):
|
||||
|
||||
if waypoint_import_user is not None:
|
||||
mqtt.subscribe(hass, WAYPOINT_TOPIC.format(waypoint_import_user),
|
||||
owntracks_waypoint_update, 1)
|
||||
owntracks_waypoint_update, 1)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user