Enable first batch of Ruff RET rules (#114480)
* Enable first batch of Ruff RET rules * disable pylint rules
This commit is contained in:
parent
6e3e09f2c3
commit
d846676e84
10 changed files with 35 additions and 42 deletions
|
@ -244,10 +244,7 @@ def patch_zha_config(component: str, overrides: dict[tuple[str, str], Any]):
|
|||
def new_get_config(config_entry, section, config_key, default):
|
||||
if (section, config_key) in overrides:
|
||||
return overrides[section, config_key]
|
||||
else:
|
||||
return async_get_zha_config_value(
|
||||
config_entry, section, config_key, default
|
||||
)
|
||||
return async_get_zha_config_value(config_entry, section, config_key, default)
|
||||
|
||||
return patch(
|
||||
f"homeassistant.components.zha.{component}.async_get_zha_config_value",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue