From 11763d90c500984b1ca0901376a1bb7cbd7e2efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20St=C3=A5hl?= Date: Wed, 9 Sep 2020 23:06:28 +0200 Subject: [PATCH] Use generic Device in config flow --- custom_components/localtuya/config_flow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/localtuya/config_flow.py b/custom_components/localtuya/config_flow.py index 173cffd..eca5e1b 100644 --- a/custom_components/localtuya/config_flow.py +++ b/custom_components/localtuya/config_flow.py @@ -72,7 +72,7 @@ def strip_dps_values(user_input, dps_strings): async def validate_input(hass: core.HomeAssistant, data): """Validate the user input allows us to connect.""" - pytuyadevice = pytuya.OutletDevice( + pytuyadevice = pytuya.Device( data[CONF_DEVICE_ID], data[CONF_HOST], data[CONF_LOCAL_KEY] ) pytuyadevice.set_version(float(data[CONF_PROTOCOL_VERSION]))