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):
119119 (
120120 entity_id ,
121121 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 )
126124 value = str (obj ._buffer [3 :length_read ], "utf-8" )
127125 obj ._attribute_cache [(entity_id , attribute_id )] = value
128126
@@ -231,9 +229,9 @@ def __init__(self, **kwargs):
231229 def _send_command (self , command_id ):
232230 if not self ._command_buffer :
233231 self ._command_buffer = bytearray (13 )
234- i = self ._remote_command .readinto (
232+ i = self ._remote_command .readinto ( # pylint: disable=no-member
235233 self ._command_buffer
236- ) # pylint: disable=no-member
234+ )
237235 if i > 0 :
238236 self ._supported_commands = list (self ._command_buffer [:i ])
239237 if command_id not in self ._supported_commands :
You can’t perform that action at this time.
0 commit comments