Xiaomi MiIO Switch: Support for different device types (#9836)
Xiaomi MiIO Switch: Support for different device types (#9836)

* Support for different device types of MIIO switches: Xiaomi Smart WiFi Socket (called Plug), Xiaomi Smart Power Strip and Xiaomi Chuang Mi Plug V1.

* Line too long fixed.

* Trailing whitespace removed.

* Changes based on review.

* Line too long fixed.

* No blank lines allowed after function docstring fixed.

* The underlying library is called python-miio now. Imports and requirements updated.

* TODO comment removed. Travis complains about.

* Blank line removed.

* Code clean-up.

* Revert "Code clean-up."

This reverts commit 96b191c7a6d30df3b2f8a301491ced61c84a49e2.

* Unused platform constant removed.

toddeye/home-assistant,persandstrom/home-assistant,balloob/home-assistant,sander76/home-assistant,ewandor/home-assistant,tinloaf/home-assistant,tboyce021/home-assistant,jawilson/home-assistant,leppa/home-assistant,MartinHjelmare/home-assistant,postlund/home-assistant,HydrelioxGitHub/home-assistant,FreekingDean/home-assistant,rohitranjan1991/home-assistant,GenericStudent/home-assistant,turbokongen/home-assistant,rohitranjan1991/home-assistant,adrienbrault/home-assistant,nkgilley/home-assistant,qedi-r/home-assistant,balloob/home-assistant,aronsky/home-assistant,mKeRix/home-assistant,fbradyirl/home-assistant,molobrakos/home-assistant,kennedyshead/home-assistant,w1ll1am23/home-assistant,pschmitt/home-assistant,FreekingDean/home-assistant,tinloaf/home-assistant,ewandor/home-assistant,aequitas/home-assistant,mezz64/home-assistant,mKeRix/home-assistant,tchellomello/home-assistant,kennedyshead/home-assistant,fbradyirl/home-assistant,balloob/home-assistant,ewandor/home-assistant,home-assistant/home-assistant,adrienbrault/home-assistant,jamespcole/home-assistant,aronsky/home-assistant,stefan-jonasson/home-assistant,titilambert/home-assistant,molobrakos/home-assistant,titilambert/home-assistant,jnewland/home-assistant,auduny/home-assistant,stefan-jonasson/home-assistant,Cinntax/home-assistant,rohitranjan1991/home-assistant,sander76/home-assistant,Teagan42/home-assistant,persandstrom/home-assistant,auduny/home-assistant,jamespcole/home-assistant,tboyce1/home-assistant,persandstrom/home-assistant,lukas-hetzenecker/home-assistant,jabesq/home-assistant,nkgilley/home-assistant,MartinHjelmare/home-assistant,sdague/home-assistant,soldag/home-assistant,tboyce1/home-assistant,Teagan42/home-assistant,nugget/home-assistant,DavidLP/home-assistant,qedi-r/home-assistant,PetePriority/home-assistant,tboyce1/home-assistant,pschmitt/home-assistant,tboyce021/home-assistant,robbiet480/home-assistant,jamespcole/home-assistant,molobrakos/home-assistant,PetePriority/home-assistant,w1ll1am23/home-assistant,jabesq/home-assistant,sdague/home-assistant,lukas-hetzenecker/home-assistant,joopert/home-assistant,PetePriority/home-assistant,jnewland/home-assistant,aequitas/home-assistant,mKeRix/home-assistant,soldag/home-assistant,tboyce1/home-assistant,tchellomello/home-assistant,home-assistant/home-assistant,turbokongen/home-assistant,tinloaf/home-assistant,jabesq/home-assistant,stefan-jonasson/home-assistant,DavidLP/home-assistant,fbradyirl/home-assistant,HydrelioxGitHub/home-assistant,nugget/home-assistant,Cinntax/home-assistant,postlund/home-assistant,MartinHjelmare/home-assistant,mezz64/home-assistant,jnewland/home-assistant,leppa/home-assistant,auduny/home-assistant,partofthething/home-assistant,GenericStudent/home-assistant,toddeye/home-assistant,joopert/home-assistant,partofthething/home-assistant,nugget/home-assistant,jawilson/home-assistant,HydrelioxGitHub/home-assistant,Danielhiversen/home-assistant,Danielhiversen/home-assistant,aequitas/home-assistant,stefan-jonasson/home-assistant,mKeRix/home-assistant,robbiet480/home-assistant,DavidLP/home-assistant