Update ruff to v0.0.280 (#97102)

This commit is contained in:
Franck Nijhof 2023-07-23 22:00:26 +02:00 committed by GitHub
parent bdd253328d
commit 86708b5590
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 25 additions and 60 deletions

View file

@ -143,9 +143,9 @@ def process_plex_payload(
content = plex_url.path
server_id = plex_url.host
plex_server = get_plex_server(hass, plex_server_id=server_id)
else:
else: # noqa: PLR5501
# Handle legacy payloads without server_id in URL host position
if plex_url.host == "search": # noqa: PLR5501
if plex_url.host == "search":
content = {}
else:
content = int(plex_url.host) # type: ignore[arg-type]