File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class _RemoteCommand(ComplexCharacteristic):
52
52
uuid = VendorUUID ("9B3C81D8-57B1-4A8A-B8DF-0E56F7CA51C2" )
53
53
54
54
def __init__ (self ):
55
- super ().__init__ (properties = Characteristic .WRITE_NO_RESPONSE | Characteristic .NOTIFY ,
55
+ super ().__init__ (properties = Characteristic .WRITE_NO_RESPONSE if Characteristic . WRITE_NO_RESPONSE else Characteristic .NOTIFY ,
56
56
read_perm = Attribute .OPEN , write_perm = Attribute .OPEN ,
57
57
max_length = 13 ,
58
58
fixed_length = False )
@@ -68,7 +68,7 @@ class _EntityUpdate(ComplexCharacteristic):
68
68
uuid = VendorUUID ("2F7CABCE-808D-411F-9A0C-BB92BA96C102" )
69
69
70
70
def __init__ (self ):
71
- super ().__init__ (properties = Characteristic .WRITE | Characteristic .NOTIFY ,
71
+ super ().__init__ (properties = Characteristic .WRITE if Characteristic . WRITE else Characteristic .NOTIFY ,
72
72
read_perm = Attribute .OPEN , write_perm = Attribute .OPEN ,
73
73
max_length = 128 ,
74
74
fixed_length = False )
@@ -85,7 +85,7 @@ class _EntityAttribute(Characteristic): # pylint: disable=too-few-public-methods
85
85
uuid = VendorUUID ("C6B2F38C-23AB-46D8-A6AB-A3A870BBD5D7" )
86
86
87
87
def __init__ (self ):
88
- super ().__init__ (properties = Characteristic .WRITE | Characteristic .READ ,
88
+ super ().__init__ (properties = Characteristic .WRITE if Characteristic . WRITE else Characteristic .READ ,
89
89
read_perm = Attribute .OPEN , write_perm = Attribute .OPEN ,
90
90
fixed_length = False )
91
91
You can’t perform that action at this time.
0 commit comments