Closed mayankraichura closed 2 years ago
Looks like smbus-cffi
is not compatible with Python 3.10 that was introduced in 2022.7.1 which broke the update.
I came across this fork by @icaruseffect that has changed to smbus2
which seems to be drop-in replacement, albeit with minor changes, for smbus-cffi
and works perfectly.
Maybe we can incorporate these changess in current repo so that whoever are using your repo can get an update notification in HACS.
I'm using sensor.waveshare_ups_hat
on 2022.7.2 and all appears to be fine for me - I cannot reproduce this issue. All functionality is working as intended and I can see all the UPS Hat sensors just fine (Hassos on RPi 4).
Hi @fraserp,
I'll give it a shot one more time.
Thanks,
Hi,
Yes it's working on 2022.7.2. On 2022.7.1, after the sensors were missing, I did check the logs and there were errors pertaining to smbus-cffi
failing build on Python 3.10 which led me to assume it's lack of compatibility. However, even I've moved to 2022.7.2 it's working fine as of now.
Thanks once again, Mayank
After updating to 2022.7.1,
sensor.waveshare_ups_hat
was gone. The logs has following error.