From fcb6ed888b447f007c86b608315da3819401dabb Mon Sep 17 00:00:00 2001 From: ndrsnhs Date: Fri, 29 Nov 2024 07:47:45 +0100 Subject: [PATCH] validate values in setdata --- packages/helpermodules/setdata.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/helpermodules/setdata.py b/packages/helpermodules/setdata.py index ee9831b70..462f00645 100644 --- a/packages/helpermodules/setdata.py +++ b/packages/helpermodules/setdata.py @@ -864,6 +864,14 @@ def process_optional_topic(self, msg: mqtt.MQTTMessage): elif ("openWB/set/optional/et/provider" in msg.topic or "openWB/set/optional/ocpp/config" in msg.topic): self._validate_value(msg, "json") + elif "openWB/set/optional/zabbix/destination_host" in msg.topic: + self._validate_value(msg, str) + elif "openWB/set/optional/zabbix/hostname" in msg.topic: + self._validate_value(msg, str) + elif "openWB/set/optional/zabbix/psk_identifier" in msg.topic: + self._validate_value(msg, str) + elif "openWB/set/optional/zabbix/psk_key" in msg.topic: + self._validate_value(msg, str) elif "openWB/set/optional/rfid/active" in msg.topic: self._validate_value(msg, bool) elif "openWB/set/optional/int_display/rotation" in msg.topic: