Enable Ruff TRY004 (#86811)

This commit is contained in:
Franck Nijhof 2023-01-30 14:06:52 +01:00 committed by GitHub
parent 7368c86ecb
commit 3b5fd4bd06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 24 additions and 22 deletions

View file

@ -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",