No need for 2 debug checks

This commit is contained in:
Meatballs1
2024-05-13 12:04:37 +01:00
parent 64f47e12a1
commit fa2be65cc8

View File

@@ -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