Merge pull request #1523 from Bart274/patch-1

add gps_accuracy and battery information to the see function
This commit is contained in:
Paulus Schoutsen 2016-03-11 16:21:26 -08:00
commit 5b2093ebc1

View File

@ -82,7 +82,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)