ERROR: sonoff - cannot import name 'BinarySensorDeviceClass'

Hi, i can’t restart HA and make anything on Sonoff because appears this error:

Component error: sonoff - cannot import name ‘BinarySensorDeviceClass’ from ‘homeassistant.components.binary_sensor’ (/usr/src/homeassistant/homeassistant/components/binary_sensor/

Can anyone help me, please?

So, do you have eWeLink or AlexxIT/Sonoff (HACS) integrations loaded. If not, did you flash the devices for other (MQTT/IQTT). To little information here to start.