Skip to content

Commit 4477d76

Browse files
committed
fix __init__
1 parent 2a9f7e2 commit 4477d76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_tca9548a.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ def __init__(self, tca: "TCA9547D", channel: int) -> None:
154154
class TCA9547D(TCA9548A):
155155
"""Class which provides interface to TCA9547D I2C multiplexer."""
156156

157+
def __init__(self, i2c: I2C, address: int = _DEFAULT_ADDRESS) -> None:
158+
super().init(i2c, address)
159+
157160
def __getitem__(self, key: Literal[0, 1, 2, 3, 4, 5, 6, 7]) -> "TCA9548A_Channel":
158161
if not 0 <= key <= 7:
159162
raise IndexError("Channel must be an integer in the range: 0-7.")

0 commit comments

Comments
 (0)