From 6ad71b84326a3a75b95ecc2404894859900d9b5d Mon Sep 17 00:00:00 2001 From: Philipp Grimm Date: Thu, 14 Mar 2024 21:41:09 +0100 Subject: [PATCH] Teach-In buttons for lights, covers, and climate added --- custom_components/eltako/eltako_integration_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/eltako/eltako_integration_init.py b/custom_components/eltako/eltako_integration_init.py index ca4325f..01fe35e 100644 --- a/custom_components/eltako/eltako_integration_init.py +++ b/custom_components/eltako/eltako_integration_init.py @@ -119,7 +119,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b if gateway_device_type is None: LOGGER.error(f"[{LOG_PREFIX}] USB device {gateway_config[CONF_DEVICE_TYPE]} is not supported!!!") return False - general_settings[CONF_ENABLE_TEACH_IN_BUTTONS] = GatewayDeviceType.is_transceiver(gateway_device_type) + general_settings[CONF_ENABLE_TEACH_IN_BUTTONS] = True # GatewayDeviceType.is_transceiver(gateway_device_type) # should only be disabled for decentral gateways LOGGER.info(f"[{LOG_PREFIX}] Initializes Gateway Device '{gateway_description}'") gateway_name = gateway_config.get(CONF_NAME, None) # from configuration