1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Allow to add a description for a port (#1023)

This commit is contained in:
Pascal Vizeli
2019-04-09 22:15:23 +02:00
committed by GitHub
parent 45b4800378
commit b77146a4e0
7 changed files with 39 additions and 35 deletions

View File

@@ -147,7 +147,7 @@ class DockerAddon(DockerInterface):
@property
def ports(self) -> Optional[Dict[str, Union[str, int, None]]]:
"""Filter None from add-on ports."""
if not self.addon.ports:
if self.addon.host_network or not self.addon.ports:
return None
return {