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:
parent
a28731c294
commit
0d66d298ec
200 changed files with 252 additions and 595 deletions
|
@ -195,8 +195,7 @@ async def setup_accessories_from_file(hass: HomeAssistant, path: str) -> Accesso
|
|||
load_fixture, os.path.join("homekit_controller", path)
|
||||
)
|
||||
accessories_json = hkloads(accessories_fixture)
|
||||
accessories = Accessories.from_list(accessories_json)
|
||||
return accessories
|
||||
return Accessories.from_list(accessories_json)
|
||||
|
||||
|
||||
async def setup_platform(hass):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue