File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,8 @@ def _update(obj):
119
119
(
120
120
entity_id ,
121
121
attribute_id ,
122
- flags , # pylint: disable=unused-variable
123
- ) = struct .unpack_from (
124
- "<BBB" , obj ._buffer
125
- )
122
+ flags , # pylint: disable=unused-variable
123
+ ) = struct .unpack_from ("<BBB" , obj ._buffer )
126
124
value = str (obj ._buffer [3 :length_read ], "utf-8" )
127
125
obj ._attribute_cache [(entity_id , attribute_id )] = value
128
126
@@ -231,9 +229,9 @@ def __init__(self, **kwargs):
231
229
def _send_command (self , command_id ):
232
230
if not self ._command_buffer :
233
231
self ._command_buffer = bytearray (13 )
234
- i = self ._remote_command .readinto (
232
+ i = self ._remote_command .readinto ( # pylint: disable=no-member
235
233
self ._command_buffer
236
- ) # pylint: disable=no-member
234
+ )
237
235
if i > 0 :
238
236
self ._supported_commands = list (self ._command_buffer [:i ])
239
237
if command_id not in self ._supported_commands :
You can’t perform that action at this time.
0 commit comments