mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Remove useless any in gen_requirements_all.comment_requirement (#115751)
This commit is contained in:
@@ -267,9 +267,7 @@ def normalize_package_name(requirement: str) -> str:
|
||||
|
||||
def comment_requirement(req: str) -> bool:
|
||||
"""Comment out requirement. Some don't install on all systems."""
|
||||
return any(
|
||||
normalize_package_name(req) == ign for ign in COMMENT_REQUIREMENTS_NORMALIZED
|
||||
)
|
||||
return normalize_package_name(req) in COMMENT_REQUIREMENTS_NORMALIZED
|
||||
|
||||
|
||||
def gather_modules() -> dict[str, list[str]] | None:
|
||||
|
Reference in New Issue
Block a user