Enable Ruff TRY004 (#86811)
This commit is contained in:
parent
7368c86ecb
commit
3b5fd4bd06
19 changed files with 24 additions and 22 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue