Skip to content

Commit

Permalink
fix: re-order attributes to show connections last
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner committed Feb 6, 2024
1 parent 7ed6903 commit cc5cd00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/hafas/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ async def async_update(self) -> None:
)

# use decomposition to not modify the original object
self._attr_extra_state_attributes |= {
self._attr_extra_state_attributes = {
k: v for k, v in running[0].items() if k != "legs"
}
} | self._attr_extra_state_attributes

0 comments on commit cc5cd00

Please sign in to comment.