Smart switch and smart light

Hey all,
i have the Philips Xiaomi Yeelight ceiling light.
on top of that i have a Sonoff smart wall switch.
each time i turn off the switch the system is loosing connectivity with the light (as it should - no power …)
the thing is that my log file keeps alerting me about it. and each time i restart HassIO it takes longer since HassIO is trying to connect to the device.

is there anything i can do to tell HassIO that the device is not mandatory or something similar?
thanks!

not to answer the question but to ask another that might solve the problem…

why have a smart switch powering a smart light? why not just power a dumb light with the smart switch?