Improve Docker and Kubernetes support for KNX (#48065)
Co-authored-by: Matthias Alphart <farmio@alphart.net>
This commit is contained in:
parent
fdf97eaca3
commit
18e6816373
2 changed files with 6 additions and 0 deletions
|
@ -368,11 +368,15 @@ class KNXModule:
|
|||
local_ip = self.config[DOMAIN][CONF_KNX_TUNNELING].get(
|
||||
ConnectionSchema.CONF_KNX_LOCAL_IP
|
||||
)
|
||||
route_back = self.config[DOMAIN][CONF_KNX_TUNNELING][
|
||||
ConnectionSchema.CONF_KNX_ROUTE_BACK
|
||||
]
|
||||
return ConnectionConfig(
|
||||
connection_type=ConnectionType.TUNNELING,
|
||||
gateway_ip=gateway_ip,
|
||||
gateway_port=gateway_port,
|
||||
local_ip=local_ip,
|
||||
route_back=route_back,
|
||||
auto_reconnect=True,
|
||||
)
|
||||
|
||||
|
|
|
@ -59,12 +59,14 @@ class ConnectionSchema:
|
|||
"""Voluptuous schema for KNX connection."""
|
||||
|
||||
CONF_KNX_LOCAL_IP = "local_ip"
|
||||
CONF_KNX_ROUTE_BACK = "route_back"
|
||||
|
||||
TUNNELING_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Optional(CONF_PORT, default=DEFAULT_MCAST_PORT): cv.port,
|
||||
vol.Required(CONF_HOST): cv.string,
|
||||
vol.Optional(CONF_KNX_LOCAL_IP): cv.string,
|
||||
vol.Optional(CONF_KNX_ROUTE_BACK, default=False): cv.boolean,
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue