From fa2be65cc82c7b5e61f70827d5e336d4534ac609 Mon Sep 17 00:00:00 2001 From: Meatballs1 Date: Mon, 13 May 2024 12:04:37 +0100 Subject: [PATCH] No need for 2 debug checks --- HCDevice.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/HCDevice.py b/HCDevice.py index c52cea9..2665f05 100755 --- a/HCDevice.py +++ b/HCDevice.py @@ -259,15 +259,13 @@ class HCDevice: if isinstance(data, list) is False: data = [data] - if action == "POST": + if action == "POST" and self.debug is False: if resource == "/ro/values": # Raises exceptions on failure - if self.debug is False: - self.test_feature(data) + self.test_feature(data) elif resource == "/ro/activeProgram": # Raises exception on failure - if self.debug is False: - self.test_program_data(data) + self.test_program_data(data) msg["data"] = data