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

@@ -58,6 +58,7 @@ from ..const import (
ATTR_MEMORY_USAGE,
ATTR_NAME,
ATTR_NETWORK,
ATTR_NETWORK_DESCRIPTION,
ATTR_NETWORK_RX,
ATTR_NETWORK_TX,
ATTR_OPTIONS,
@@ -194,6 +195,7 @@ class APIAddons(CoreSysAttributes):
ATTR_AVAILABLE: addon.available,
ATTR_BUILD: addon.need_build,
ATTR_NETWORK: addon.ports,
ATTR_NETWORK_DESCRIPTION: addon.ports_description,
ATTR_HOST_NETWORK: addon.host_network,
ATTR_HOST_PID: addon.host_pid,
ATTR_HOST_IPC: addon.host_ipc,