Removal of extraneous parenthesis (#33637)

This commit is contained in:
Franck Nijhof 2020-04-04 20:08:55 +02:00 committed by GitHub
parent 7d3c974747
commit 187b6525b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 59 additions and 80 deletions

View file

@ -201,13 +201,13 @@ class NextBusDepartureSensor(Entity):
messages = listify(results.get("message", []))
self._log_debug("Messages: %s", messages)
self._attributes["message"] = " -- ".join(
(message.get("text", "") for message in messages)
message.get("text", "") for message in messages
)
# List out all directions in the attributes
directions = listify(results.get("direction", []))
self._attributes["direction"] = ", ".join(
(direction.get("title", "") for direction in directions)
direction.get("title", "") for direction in directions
)
# Chain all predictions together