mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Fix KNX IP Secure tunnelling endpoint selection with keyfile (#131941)
This commit is contained in:
parent
aa206c7608
commit
1abd2209b3
@ -54,6 +54,7 @@ from .const import (
|
||||
CONF_KNX_SECURE_USER_PASSWORD,
|
||||
CONF_KNX_STATE_UPDATER,
|
||||
CONF_KNX_TELEGRAM_LOG_SIZE,
|
||||
CONF_KNX_TUNNEL_ENDPOINT_IA,
|
||||
CONF_KNX_TUNNELING,
|
||||
CONF_KNX_TUNNELING_TCP,
|
||||
CONF_KNX_TUNNELING_TCP_SECURE,
|
||||
@ -352,6 +353,7 @@ class KNXModule:
|
||||
if _conn_type == CONF_KNX_TUNNELING_TCP:
|
||||
return ConnectionConfig(
|
||||
connection_type=ConnectionType.TUNNELING_TCP,
|
||||
individual_address=self.entry.data.get(CONF_KNX_TUNNEL_ENDPOINT_IA),
|
||||
gateway_ip=self.entry.data[CONF_HOST],
|
||||
gateway_port=self.entry.data[CONF_PORT],
|
||||
auto_reconnect=True,
|
||||
@ -364,6 +366,7 @@ class KNXModule:
|
||||
if _conn_type == CONF_KNX_TUNNELING_TCP_SECURE:
|
||||
return ConnectionConfig(
|
||||
connection_type=ConnectionType.TUNNELING_TCP_SECURE,
|
||||
individual_address=self.entry.data.get(CONF_KNX_TUNNEL_ENDPOINT_IA),
|
||||
gateway_ip=self.entry.data[CONF_HOST],
|
||||
gateway_port=self.entry.data[CONF_PORT],
|
||||
secure_config=SecureConfig(
|
||||
|
@ -104,7 +104,7 @@ class KNXConfigEntryData(TypedDict, total=False):
|
||||
route_back: bool # not required
|
||||
host: str # only required for tunnelling
|
||||
port: int # only required for tunnelling
|
||||
tunnel_endpoint_ia: str | None
|
||||
tunnel_endpoint_ia: str | None # tunnelling only - not required (use get())
|
||||
# KNX secure
|
||||
user_id: int | None # not required
|
||||
user_password: str | None # not required
|
||||
|
Loading…
x
Reference in New Issue
Block a user