Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaae committed Sep 18, 2023
2 parents 69aed09 + 7844983 commit 308d43c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/portainer/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ def get_containers(self) -> None:
{"name": "EndpointId", "default": eid},
],
)

for cid in self.data["containers"]:
self.data["containers"][cid]["Environment"] = self.data["endpoints"][
eid
]["Name"]
self.data["containers"][cid]["Name"] = self.data["containers"][cid][
"Names"
][0][1:]
1 change: 1 addition & 0 deletions custom_components/portainer/sensor_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"Compose_Stack",
"Compose_Service",
"Compose_Version",
"Environment",
]


Expand Down

0 comments on commit 308d43c

Please sign in to comment.