mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Enable KNX routing optional local_ip (#46133)
This commit is contained in:
parent
c6c0e2416c
commit
2cf46330b1
@ -298,6 +298,9 @@ class KNXModule:
|
||||
|
||||
def connection_config_routing(self):
|
||||
"""Return the connection_config if routing is configured."""
|
||||
local_ip = None
|
||||
# all configuration values are optional
|
||||
if self.config[DOMAIN][CONF_KNX_ROUTING] is not None:
|
||||
local_ip = self.config[DOMAIN][CONF_KNX_ROUTING].get(
|
||||
ConnectionSchema.CONF_KNX_LOCAL_IP
|
||||
)
|
||||
|
@ -38,7 +38,7 @@ class ConnectionSchema:
|
||||
}
|
||||
)
|
||||
|
||||
ROUTING_SCHEMA = vol.Schema({vol.Optional(CONF_KNX_LOCAL_IP): cv.string})
|
||||
ROUTING_SCHEMA = vol.Maybe(vol.Schema({vol.Optional(CONF_KNX_LOCAL_IP): cv.string}))
|
||||
|
||||
|
||||
class CoverSchema:
|
||||
|
Loading…
x
Reference in New Issue
Block a user