Closed chatziko closed 4 months ago
Hi @chatziko,
could you please fix this one lint message, than I'll merge this PR :-) mqtt_io/modules/gpio/gpiod.py:23:0: R0902: Too many instance attributes (8/7) (too-many-instance-attributes)
Thank you!
Done. I left flags_map
as an attribute, to be consistent with the rest of the code (direction_map
, interrupt_edge_map
, etc). And just added pylint: disable=too-many-instance-attributes
which is already used in a few other places, so I guess it's acceptable.
This simple PR enables pullup/pulldown for gpiod, it's supported since python3-gpiod 1.5.2.
Note (independent from this PR)
The current code requires python3-gpiod <= 1.5.4, versions after 1.5.4 have completely changed the API. Hopefully, at least in my rasperry pi, pip seems to choose 1.5.4 instead of the latest versions. But it would be better to explicitly require python3-gpiod == 1.5.4.