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
|
@ -187,7 +187,7 @@ async def async_subscribe(
|
|||
translation_domain=DOMAIN,
|
||||
translation_placeholders={"topic": topic},
|
||||
) from exc
|
||||
async_remove = await mqtt_data.client.async_subscribe(
|
||||
return await mqtt_data.client.async_subscribe(
|
||||
topic,
|
||||
catch_log_exception(
|
||||
msg_callback,
|
||||
|
@ -199,7 +199,6 @@ async def async_subscribe(
|
|||
qos,
|
||||
encoding,
|
||||
)
|
||||
return async_remove
|
||||
|
||||
|
||||
@bind_hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue