|
|
@@ -552,7 +552,7 @@ class TuyaDpsConfig:
|
|
|
if self.rawtype == "bitfield" and matchdata:
|
|
|
try:
|
|
|
return (int(value) & int(matchdata)) != 0
|
|
|
- except (TypeError, ValueError):
|
|
|
+ except TypeError, ValueError:
|
|
|
return False
|
|
|
else:
|
|
|
return str(value) == str(matchdata)
|