lower case
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2025-12-05 13:45:00 +01:00
parent e820aa2000
commit 6e50654d00

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)}")