Enable Ruff RSE (#113695)
This commit is contained in:
parent
685553d17d
commit
82a60fe8ad
155 changed files with 325 additions and 324 deletions
|
@ -571,7 +571,7 @@ class HassIO:
|
|||
# such as ../../../../etc/passwd
|
||||
if url != str(joined_url):
|
||||
_LOGGER.error("Invalid request %s", command)
|
||||
raise HassioAPIError()
|
||||
raise HassioAPIError
|
||||
|
||||
try:
|
||||
response = await self.websession.request(
|
||||
|
@ -598,7 +598,7 @@ class HassIO:
|
|||
method,
|
||||
response.status,
|
||||
)
|
||||
raise HassioAPIError()
|
||||
raise HassioAPIError
|
||||
|
||||
if return_text:
|
||||
return await response.text(encoding="utf-8")
|
||||
|
@ -611,4 +611,4 @@ class HassIO:
|
|||
except aiohttp.ClientError as err:
|
||||
_LOGGER.error("Client error on %s request %s", command, err)
|
||||
|
||||
raise HassioAPIError()
|
||||
raise HassioAPIError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue