Removal of extraneous parenthesis (#33637)
This commit is contained in:
parent
7d3c974747
commit
187b6525b4
15 changed files with 59 additions and 80 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue