mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Update owntracks.py (#12260)
This commit is contained in:
parent
0b947882ac
commit
4c11a3461f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user