From 98a153816722f7f49be1708347b67e52f465daad Mon Sep 17 00:00:00 2001 From: csawatzky Date: Thu, 23 Oct 2025 13:01:54 -0600 Subject: [PATCH] fix for the I2C Drager stuff so it uses the expansion line and not cable id so the address type stays as 2, onewire drager will still use cable id --- src/component/ComponentSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/ComponentSettings.tsx b/src/component/ComponentSettings.tsx index a7b8877..5dd2695 100644 --- a/src/component/ComponentSettings.tsx +++ b/src/component/ComponentSettings.tsx @@ -514,7 +514,8 @@ export default function ComponentSettings(props: Props) { } const supportsExpansion = () => { - return (formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE && + return ((formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_GRAIN_CABLE || + formComponent.settings.type === quack.ComponentType.COMPONENT_TYPE_DRAGER_GAS_DONGLE) && formComponent.settings.addressType === quack.AddressType.ADDRESS_TYPE_I2C) }