Update plugwise to async and config_flow switch part (#36383)

* Add switch component

* Update homeassistant/components/plugwise/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Update homeassistant/components/plugwise/switch.py

Co-authored-by: J. Nick Koston <nick@koston.org>

* Improvements by @bdraco

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
TomandJ. Nick Koston authored and GitHub committed 2020-06-02 14:45:14 -05:00
1 parent 1771fbbd34
commit 61c08e792d
3 files changed
+86 -1

No files matched your search

@@ -24,7 +24,7 @@ CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
_LOGGER = logging.getLogger(__name__)
SENSOR_PLATFORMS = ["sensor"]
ALL_PLATFORMS = ["binary_sensor", "climate", "sensor"]
ALL_PLATFORMS = ["binary_sensor", "climate", "sensor", "switch"]
async def async_setup(hass: HomeAssistant, config: dict):