Update owntracks.py (#12260)

This commit is contained in:
luca-angemi 2018-02-09 23:06:31 +01:00 committed by Fabian Affolter
parent 0b947882ac
commit 4c11a3461f

View File

@ -143,6 +143,8 @@ def _parse_see_args(message, subscribe_topic):
kwargs['attributes']['tid'] = message['tid']
if 'addr' in message:
kwargs['attributes']['address'] = message['addr']
if 'cog' in message:
kwargs['attributes']['course'] = message['cog']
if 't' in message:
if message['t'] == 'c':
kwargs['attributes'][ATTR_SOURCE_TYPE] = SOURCE_TYPE_GPS