From 284a1fd08e63a52a651763a9db2ed282f652469a Mon Sep 17 00:00:00 2001 From: Bart274 Date: Fri, 11 Mar 2016 14:10:04 +0100 Subject: [PATCH] add gps_accuracy and battery information to the see function the see function from device_tracker doesn't pass the gps_accuracy and the battery information to the see service, so this information gets lost. --- homeassistant/components/device_tracker/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/__init__.py b/homeassistant/components/device_tracker/__init__.py index eb1e06a8df8..bdd27244bac 100644 --- a/homeassistant/components/device_tracker/__init__.py +++ b/homeassistant/components/device_tracker/__init__.py @@ -57,6 +57,7 @@ ATTR_DEV_ID = 'dev_id' ATTR_HOST_NAME = 'host_name' ATTR_LOCATION_NAME = 'location_name' ATTR_GPS = 'gps' +ATTR_GPS_ACCURACY = 'gps_accuracy' ATTR_BATTERY = 'battery' DISCOVERY_PLATFORMS = { @@ -82,7 +83,9 @@ def see(hass, mac=None, dev_id=None, host_name=None, location_name=None, (ATTR_DEV_ID, dev_id), (ATTR_HOST_NAME, host_name), (ATTR_LOCATION_NAME, location_name), - (ATTR_GPS, gps)) if value is not None} + (ATTR_GPS, gps), + (ATTR_GPS_ACCURACY, gps_accuracy), + (ATTR_BATTERY, battery)) if value is not None} hass.services.call(DOMAIN, SERVICE_SEE, data)