Resolve code review comment

This commit is contained in:
Meatballs1
2024-03-19 13:33:50 +00:00
parent bbd5c468c1
commit e5550486e2

View File

@@ -98,7 +98,7 @@ class HCDevice:
if 'uid' not in data: if 'uid' not in data:
raise Exception("{self.name}. Unable to configure appliance. UID is required.") raise Exception("{self.name}. Unable to configure appliance. UID is required.")
if isinstance(data['uid'], int) == False: if isinstance(data['uid'], int) is False:
raise Exception("{self.name}. Unable to configure appliance. UID must be an integer.") raise Exception("{self.name}. Unable to configure appliance. UID must be an integer.")
if 'value' not in data: if 'value' not in data: