Adds feature to get also longitude and latitude of the triggerd entry… (#42990)

This commit is contained in:
Steve Brandt 2020-11-09 08:37:59 +01:00 committed by GitHub
parent 12adde5349
commit 0f46916f9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,8 @@ class OpenSkySensor(Entity):
ATTR_CALLSIGN: flight,
ATTR_ALTITUDE: altitude,
ATTR_SENSOR: self._name,
ATTR_LONGITUDE: flight.get(ATTR_LONGITUDE),
ATTR_LATITUDE: flight.get(ATTR_LATITUDE),
}
self._hass.bus.fire(event, data)