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

@ -113,7 +113,7 @@ async def _create_august_api_with_devices( # noqa: C901
{"base": _mock_august_doorbell(device.device_id), "detail": device}
)
else:
raise ValueError
raise ValueError # noqa: TRY004
def _get_device_detail(device_type, device_id):
for device in device_data[device_type]: