Enable first batch of Ruff RET rules (#114480)

* Enable first batch of Ruff RET rules

* disable pylint rules
This commit is contained in:
Sid 2024-03-31 11:30:59 +02:00 committed by GitHub
parent 6e3e09f2c3
commit d846676e84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 35 additions and 42 deletions

View file

@ -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",