Raspihats integration for Home Assistant extracted from Home Assistant 2022.3.8.
Last Working Raspihats Integration
sudo pacman -S i2c-tools
# /boot/config.txt
dtparam=i2c_arm=on
# /etc/modules-load.d/raspberrypi.conf
i2c-dev
# ha - home assistant config folder
me="$(whoami)"
cd /home/$me/ha/custom_components
git clone https://github.com/pelemarse/raspihats