Add new is_reatime attribute for De Lijn (#36369)

This commit is contained in:
Emilv2 2020-06-03 17:52:20 +02:00 committed by GitHub
parent eb95c5cd2e
commit 3b606504a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,6 +94,7 @@ class DeLijnPublicTransportSensor(Entity):
self._attributes["final_destination"] = first["final_destination"]
self._attributes["due_at_schedule"] = first["due_at_schedule"]
self._attributes["due_at_realtime"] = first["due_at_realtime"]
self._attributes["is_realtime"] = first["is_realtime"]
self._attributes["next_passages"] = self.line.passages
self._available = True
except (KeyError, IndexError):