This commit is contained in:
Robert Resch 2024-11-14 10:06:55 +01:00
parent b505a13947
commit 619fc1e45e
No known key found for this signature in database
GPG key ID: 9D9D9DCB43120143
2 changed files with 828 additions and 7 deletions

File diff suppressed because it is too large Load diff

View file

@ -600,14 +600,9 @@ def main(validate: bool, ci: bool) -> int:
# Get analytics data
analytics = asyncio.get_event_loop().run_until_complete(_get_analytics())
top_integrations = [
f"homeassistant.components.{i}"
for i, _ in sorted(
analytics.integrations.items(), key=lambda x: x[1], reverse=True
)
]
top_integrations = [f"homeassistant.components.{i}" for i, c in analytics.integrations.items() if c > 1000]
top = top_integrations[:100]
top = top_integrations
data_top = {}