2 Commits

Author SHA1 Message Date
6e50654d00 lower case
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
2025-12-05 13:45:00 +01:00
e820aa2000 fix in ci 2025-12-05 13:36:19 +01:00
2 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ steps:
exclude:
- refs/tags/*-configchange
namespace:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
environment:
@@ -34,6 +33,10 @@ steps:
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- export KUBECONFIG=/tmp/kubeconfig
- kubectl create namespace $NAMESPACE || echo "Namespace $NAMESPACE already exists"
when:
ref:
exclude:
- refs/tags/*-configchange
configuration:
image: quay.io/wollud1969/k8s-admin-helper:0.3.4

View File

@@ -24,7 +24,7 @@ class ToDevices(AbstractMqttPublisher):
continue
if device.register_type != 'coil':
raise Exception(f"Unsupported register type {device.register_type} for input device {device.name}")
value = payload == b'On'
value = payload == b'on'
self.modbusHandler.writeCoil(device.slave_id, device.address, value)
except Exception as e:
logger.error(f"Caught exception in onMessage: {str(e)}")