Enable raise-within-try (TRY301) rule in ruff (#123351)

This commit is contained in:
epenet 2024-08-12 09:16:33 +02:00 committed by GitHub
parent b15ea58851
commit 0bb8c4832d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 41 additions and 42 deletions

View file

@ -350,7 +350,7 @@ class DeviceTrackerPlatform:
discovery_info,
)
else:
raise HomeAssistantError("Invalid legacy device_tracker platform.")
raise HomeAssistantError("Invalid legacy device_tracker platform.") # noqa: TRY301
if scanner is not None:
async_setup_scanner_platform(