From 4c11a3461fc0ef0b39de73bb7f65c20739321f15 Mon Sep 17 00:00:00 2001 From: luca-angemi Date: Fri, 9 Feb 2018 23:06:31 +0100 Subject: [PATCH] Update owntracks.py (#12260) --- homeassistant/components/device_tracker/owntracks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/device_tracker/owntracks.py b/homeassistant/components/device_tracker/owntracks.py index 1742a0aed95..e99524c36db 100644 --- a/homeassistant/components/device_tracker/owntracks.py +++ b/homeassistant/components/device_tracker/owntracks.py @@ -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