Merge branch 'postlund-fix_fan'

This commit is contained in:
rospogrigio
2020-09-14 20:59:39 +02:00
2 changed files with 1 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ class LocaltuyaConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
return converted
await self.async_set_unique_id(user_input[CONF_DEVICE_ID])
self._set_platform(user_input[CONF_PLATFORM], [])
self._set_platform(user_input[CONF_PLATFORM])
if len(user_input.get(CONF_SWITCHES, [])) > 0:
for switch_conf in user_input[CONF_SWITCHES].values():

View File

@@ -76,8 +76,6 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
# TODO: keeping for now but should be removed
dps = {}
dps[config.get(CONF_ID)]=None
pytuyadevice.set_dpsUsed(dps)
covers = []
for device_config in entities_to_setup: