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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user