But it seems that putting Switch>Xiaomi under custom_component breaks my current Xiaomi Gateway integration that is under component.
Or am i doing it wrong? Because both custom_component and component switch is named xiaomi.py. Is it conflicting with each other? Thanks for the response tho.
Think you can name the switch to xiaomiSwitch.py and give it a go. I have the switch under mirobo component and the rest of them under Xiaomi component.