Fix for see service attributes (#4023)

This commit is contained in:
Bart274 authored and Johann Kellerman committed 2016-10-25 10:59:20 +02:00
1 parent 89e8fb4066
commit 53ea926292
2 files changed
+5 -3

No files matched your search

@@ -103,8 +103,7 @@ def see(hass: HomeAssistantType, mac: str=None, dev_id: str=None,
(ATTR_GPS_ACCURACY, gps_accuracy),
(ATTR_BATTERY, battery)) if value is not None}
if attributes:
for key, value in attributes:
data[key] = value
data[ATTR_ATTRIBUTES] = attributes
hass.services.call(DOMAIN, SERVICE_SEE, data)