mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 03:08:01 +02:00
Enable Ruff RUF019 (#115396)
* Enable Ruff RUF019 * fix tado tests * review comments
This commit is contained in:
@ -1106,7 +1106,7 @@ def empty_config_schema(domain: str) -> Callable[[dict], dict]:
|
||||
"""Return a config schema which logs if there are configuration parameters."""
|
||||
|
||||
def validator(config: dict) -> dict:
|
||||
if domain in config and config[domain]:
|
||||
if config_domain := config.get(domain):
|
||||
get_integration_logger(__name__).error(
|
||||
(
|
||||
"The %s integration does not support any configuration parameters, "
|
||||
@ -1114,7 +1114,7 @@ def empty_config_schema(domain: str) -> Callable[[dict], dict]:
|
||||
"configuration."
|
||||
),
|
||||
domain,
|
||||
config[domain],
|
||||
config_domain,
|
||||
)
|
||||
return config
|
||||
|
||||
|
Reference in New Issue
Block a user