Bump broadlink from 0.16.0 to 0.17.0 (#47779)
This commit is contained in:
parent
92852b9c10
commit
9ca0cd5464
10 changed files with 157 additions and 167 deletions
|
@ -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 "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue