Enable Ruff TRY201 (#114269)
* Enable Ruff TRY201 * remove redundant rules
This commit is contained in:
parent
071c3abb69
commit
f7b7f74d10
36 changed files with 71 additions and 66 deletions
|
@ -154,7 +154,7 @@ class OAuth2FlowHandler(
|
|||
await self.async_set_unique_id(user.id)
|
||||
try:
|
||||
self._abort_if_unique_id_configured()
|
||||
except AbortFlow as err:
|
||||
except AbortFlow:
|
||||
async_create_issue(
|
||||
self.hass,
|
||||
DOMAIN,
|
||||
|
@ -168,7 +168,7 @@ class OAuth2FlowHandler(
|
|||
"integration_title": "Twitch",
|
||||
},
|
||||
)
|
||||
raise err
|
||||
raise
|
||||
async_create_issue(
|
||||
self.hass,
|
||||
HOMEASSISTANT_DOMAIN,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue