mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +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:
@@ -36,8 +36,7 @@ VALID_CONFIG_5 = {feedreader.DOMAIN: {CONF_URLS: [URL], CONF_MAX_ENTRIES: 1}}
|
||||
def load_fixture_bytes(src: str) -> bytes:
|
||||
"""Return byte stream of fixture."""
|
||||
feed_data = load_fixture(src, DOMAIN)
|
||||
raw = bytes(feed_data, "utf-8")
|
||||
return raw
|
||||
return bytes(feed_data, "utf-8")
|
||||
|
||||
|
||||
@pytest.fixture(name="feed_one_event")
|
||||
|
||||
Reference in New Issue
Block a user