From bbd5c468c1c59bdbe7e23249f95a40cb5901c638 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Tue, 19 Mar 2024 11:22:46 +0000 Subject: [PATCH] Fix incorrect min/max lookup --- HCDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HCDevice.py b/HCDevice.py index 9ee46e4..6c40921 100755 --- a/HCDevice.py +++ b/HCDevice.py @@ -130,7 +130,7 @@ class HCDevice: if 'min' in feature: min = int(feature['min']) - max = int(feature['min']) + max = int(feature['max']) if isinstance(data['value'], int) == False or data['value'] < min or data['value'] > max: raise Exception(f"{self.name}. Unable to configure appliance. Value {data['value']} is not a valid value. The value must be an integer in the range {min} and {max}.")