Hello,
My name is Bartosz - this is my first post here so I would like to say warmly greet everybody
My platform - this is docker version (RPI 4):
HA: 0.115 - fresh update
docker_version: 19.03.12
After update to 0.115 I have just lost my MCP23017 Expander for both: sensor and switch.
Example of config (the same setting was working perfect on previous version):
Binary sensors
binary_sensor:
- platform: mcp23017
i2c_address: 0x22
pins:
0: MCP_IN 8
#Switches
switch:
- platform: mcp23017
i2c_address: 0x20
pins:
0: MCP 8
For sensor I have got the following error:
Error while setting up mcp23017 platform for binary_sensor
Traceback (most recent call last):
File β/usr/src/homeassistant/homeassistant/helpers/entity_platform.pyβ, line 193, in _async_setup_platform
await asyncio.shield(task)
File β/usr/local/lib/python3.8/concurrent/futures/thread.pyβ, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File β/usr/src/homeassistant/homeassistant/components/mcp23017/binary_sensor.pyβ, line 48, in setup_platform
i2c = busio.I2C(board.SCL, board.SDA)
File β/usr/local/lib/python3.8/site-packages/busio.pyβ, line 18, in init
self.init(scl, sda, frequency)
File β/usr/local/lib/python3.8/site-packages/busio.pyβ, line 38, in init
from microcontroller.pin import i2cPorts
File β/usr/local/lib/python3.8/site-packages/microcontroller/init.pyβ, line 29, in
elif chip_id == ap_chip.STM32:
AttributeError: module βadafruit_platformdetect.constants.chipsβ has no attribute βSTM32β
For switch:
Error while setting up mcp23017 platform for switch
Traceback (most recent call last):
File β/usr/src/homeassistant/homeassistant/helpers/entity_platform.pyβ, line 193, in _async_setup_platform
await asyncio.shield(task)
File β/usr/local/lib/python3.8/concurrent/futures/thread.pyβ, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File β/usr/src/homeassistant/homeassistant/components/mcp23017/switch.pyβ, line 41, in setup_platform
i2c = busio.I2C(board.SCL, board.SDA)
File β/usr/local/lib/python3.8/site-packages/busio.pyβ, line 18, in init
self.init(scl, sda, frequency)
File β/usr/local/lib/python3.8/site-packages/busio.pyβ, line 38, in init
from microcontroller.pin import i2cPorts
File β/usr/local/lib/python3.8/site-packages/microcontroller/init.pyβ, line 29, in
elif chip_id == ap_chip.STM32:
AttributeError: module βadafruit_platformdetect.constants.chipsβ has no attribute βSTM32β
I would be grateful for help and support with solving the problem.
Thank you.
Bigu1975