diff --git a/adafruit_pm25/uart.py b/adafruit_pm25/uart.py index 8442b5c..cb7d76d 100644 --- a/adafruit_pm25/uart.py +++ b/adafruit_pm25/uart.py @@ -196,6 +196,8 @@ def _build_cmd_frame(cmd_bytes): return cmd_frame def _read_uart(self): + # Disable too-many violations for this method, since it actually needs these branches + # pylint: disable=too-many-nested-blocks,too-many-branches """ Reads a single frame via UART