Moved disable because local and remote pylint didn't agree

This commit is contained in:
dherrada 2020-03-10 13:12:24 -04:00
parent 36b5e46c5b
commit 72b56e6393

View file

@ -120,9 +120,7 @@ class _MediaAttribute:
entity_id, entity_id,
attribute_id, attribute_id,
flags, # pylint: disable=unused-variable flags, # pylint: disable=unused-variable
) = struct.unpack_from( ) = struct.unpack_from("<BBB", obj._buffer)
"<BBB", obj._buffer
)
value = str(obj._buffer[3:length_read], "utf-8") value = str(obj._buffer[3:length_read], "utf-8")
obj._attribute_cache[(entity_id, attribute_id)] = value obj._attribute_cache[(entity_id, attribute_id)] = value
@ -231,9 +229,9 @@ class AppleMediaService(Service):
def _send_command(self, command_id): def _send_command(self, command_id):
if not self._command_buffer: if not self._command_buffer:
self._command_buffer = bytearray(13) self._command_buffer = bytearray(13)
i = self._remote_command.readinto( i = self._remote_command.readinto( # pylint: disable=no-member
self._command_buffer self._command_buffer
) # pylint: disable=no-member )
if i > 0: if i > 0:
self._supported_commands = list(self._command_buffer[:i]) self._supported_commands = list(self._command_buffer[:i])
if command_id not in self._supported_commands: if command_id not in self._supported_commands: