Sensors randomly dropping

Hello, perhaps Xiaomi Mi Light Detection Sensor stops updating - #49 by ParanoidiordnA ?

If you remove the switch it’s working again ?