Enable Ruff RSE (#113695)

This commit is contained in:
Sid 2024-03-18 00:40:38 +01:00 committed by GitHub
parent 685553d17d
commit 82a60fe8ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
155 changed files with 325 additions and 324 deletions

View file

@ -74,7 +74,7 @@ def setup_platform(
data.update()
if data.available is False:
_LOGGER.error("Unable to connect to CUPS server: %s:%s", host, port)
raise PlatformNotReady()
raise PlatformNotReady
assert data.printers is not None
dev: list[SensorEntity] = []
@ -97,7 +97,7 @@ def setup_platform(
data.update()
if data.available is False:
_LOGGER.error("Unable to connect to IPP printer: %s:%s", host, port)
raise PlatformNotReady()
raise PlatformNotReady
dev = []
for printer in printers: