1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Enable Ruff RET504 (#114528)

* Enable Ruff RET504

* fix test

* Use noqa instead of cast

* fix sonos RET504

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Sid
2024-04-06 11:07:37 +02:00
committed by GitHub
parent a28731c294
commit 0d66d298ec
200 changed files with 252 additions and 595 deletions

View File

@@ -599,8 +599,7 @@ def setup_plex_server(
websocket_connected(mock_websocket)
await hass.async_block_till_done()
plex_server = hass.data[DOMAIN][SERVERS][entry.unique_id]
return plex_server
return hass.data[DOMAIN][SERVERS][entry.unique_id]
return _wrapper