Options fix (#28)
* Fix options checking --------- Co-authored-by: Meatballs1 <ben.campbell@withsecure.com>
This commit is contained in:
@@ -119,10 +119,11 @@ class HCDevice:
|
||||
)
|
||||
|
||||
if "options" in data:
|
||||
for option_uid in data["options"]:
|
||||
for option in data["options"]:
|
||||
option_uid = option["uid"]
|
||||
if str(option_uid) not in self.features:
|
||||
raise ValueError(
|
||||
f"Unable to configure appliance. Option UID {uid} is not"
|
||||
f"Unable to configure appliance. Option UID {option_uid} is not"
|
||||
" valid for this device."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user