mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
typo in waypoint import topic preventing waypoint import (#9338)
owntracks (tested on ios version 9.6.3/de_DE) publishes single waypoints under the topic owntracks/<user>/<device>/waypoint (singular). owntrack publishes a waypoint export (publish) under the topic owntracks/<user>/<device>/waypoints (plural). the owntracks component did not catch my waypoint export to mqtt, only single waypoint updates (i.e. after editing a waypoint or creating a new one). these single waypoints were rejected „because of missing or malformatted data“. when i changed the WAYPOINT_TOPIC to 'owntracks/{}/{}/waypoints', owntracks imported my published waypoint list, after i triggered it under Setting / Publish Waypoints.
This commit is contained in:
parent
6d01838632
commit
51ff6009a3
@ -42,7 +42,7 @@ VALIDATE_WAYPOINTS = 'waypoints'
|
|||||||
|
|
||||||
WAYPOINT_LAT_KEY = 'lat'
|
WAYPOINT_LAT_KEY = 'lat'
|
||||||
WAYPOINT_LON_KEY = 'lon'
|
WAYPOINT_LON_KEY = 'lon'
|
||||||
WAYPOINT_TOPIC = 'owntracks/{}/{}/waypoint'
|
WAYPOINT_TOPIC = 'owntracks/{}/{}/waypoints'
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
vol.Optional(CONF_MAX_GPS_ACCURACY): vol.Coerce(float),
|
vol.Optional(CONF_MAX_GPS_ACCURACY): vol.Coerce(float),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user