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