Bump broadlink from 0.16.0 to 0.17.0 (#47779)

This commit is contained in:
Felipe Martins Diel 2021-03-12 02:34:56 -03:00 committed by GitHub
parent 92852b9c10
commit 9ca0cd5464
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 157 additions and 167 deletions

View file

@ -39,11 +39,7 @@ class BroadlinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
async def async_set_device(self, device, raise_on_progress=True):
"""Define a device for the config flow."""
supported_types = {
device_type
for device_types in DOMAINS_AND_TYPES
for device_type in device_types[1]
}
supported_types = set.union(*DOMAINS_AND_TYPES.values())
if device.type not in supported_types:
_LOGGER.error(
"Unsupported device: %s. If it worked before, please open "