mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 21:22:22 +01:00
[ruff] Enable PERF rules and fix all violations (#9874)
This commit is contained in:
@@ -317,7 +317,7 @@ def preload_core_config(config, result) -> str:
|
||||
|
||||
target_platforms = []
|
||||
|
||||
for domain, _ in config.items():
|
||||
for domain in config:
|
||||
if domain.startswith("."):
|
||||
continue
|
||||
if _is_target_platform(domain):
|
||||
|
Reference in New Issue
Block a user