Upgrade black to 20.8b1 (#39287)

This commit is contained in:
Franck Nijhof 2020-08-27 13:56:20 +02:00 committed by GitHub
parent 0d7eec710c
commit 1c2ebdf307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
574 changed files with 4389 additions and 1725 deletions

View file

@ -60,7 +60,10 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
if auto_detected_data is not None:
title = f"{port.description}, s/n: {port.serial_number or 'n/a'}"
title += f" - {port.manufacturer}" if port.manufacturer else ""
return self.async_create_entry(title=title, data=auto_detected_data,)
return self.async_create_entry(
title=title,
data=auto_detected_data,
)
# did not detect anything
self._device_path = dev_path
@ -78,7 +81,8 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
schema = {vol.Required(CONF_RADIO_TYPE): vol.In(sorted(RadioType.list()))}
return self.async_show_form(
step_id="pick_radio", data_schema=vol.Schema(schema),
step_id="pick_radio",
data_schema=vol.Schema(schema),
)
async def async_step_port_config(self, user_input=None):
@ -113,7 +117,9 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
schema[param] = value
return self.async_show_form(
step_id="port_config", data_schema=vol.Schema(schema), errors=errors,
step_id="port_config",
data_schema=vol.Schema(schema),
errors=errors,
)