Hi,
I created a light based platform for Qwikswitch, but now realise some of my qwikswitch relay elements should be switches. There is one loop to update the state of all lights and switches, but not sure how to create these devices, or if it should rather be a component:
- I need to call add_devices with lights and switches. setup does not have add_devices like setup_platform
- Can I simply pass a object inherited from switch to add_devices during a light based setup_platform?
Does it matter that I only configured light, but my platform added a switch?