Skip to content

Non necessary import of I2C if using an UART sensor #5

Closed
@dglaude

Description

@dglaude

When using the UART sensor, you don't need the adafruit_bus_device library.

However, the following line in the library import what is required for the I2C version:
from adafruit_bus_device.i2c_device import I2CDevice

No big deal, and I have no clue how to do things better because all my idea seems to be worse that current situation (like putting the import on the I2C side or separating the two).
Also I don't have the I2C version to test, so I could not really test a change on that side.

But it could be an improvement for user of UART sensor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions