Raspberry Pi RF Switch not working

After moving til Hass.io the RF Switch (components switch.rpi_rf/) is not working.

Log says:
File “/usr/lib/python3.6/site-packages/homeassistant/components/switch/rpi_rf.py”, line 50, in setup_platform
import rpi_rf
ModuleNotFoundError: No module named ‘rpi_rf’

The module has to be installed like this:
apt-get install python3-pip
pip3 install rpi-rf

Can I do that in Hass.io and if yes how?

Thanks

Fixed.

Rebooted three times and the momdule started loading :grinning: