Enable Ruff TRY004 (#86811)
This commit is contained in:
parent
7368c86ecb
commit
3b5fd4bd06
19 changed files with 24 additions and 22 deletions
|
@ -378,7 +378,7 @@ class NestFlowHandler(
|
|||
if not isinstance(
|
||||
self.flow_impl, config_entry_oauth2_flow.LocalOAuth2Implementation
|
||||
):
|
||||
raise ValueError(f"Unexpected OAuth implementation: {self.flow_impl}")
|
||||
raise TypeError(f"Unexpected OAuth implementation: {self.flow_impl}")
|
||||
client_id = self.flow_impl.client_id
|
||||
return self.async_show_form(
|
||||
step_id="device_project_upgrade",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue