Skip to content

Commit

Permalink
Only show HACS data in system info for experimental (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Jan 22, 2023
1 parent a7eb581 commit 816cd4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/hacs/system_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ async def system_health_info(hass):
"GitHub Web": system_health.async_check_can_reach_url(
hass, "https://github.com/", GITHUB_STATUS
),
"HACS Data": system_health.async_check_can_reach_url(
hass, "https://data-v2.hacs.xyz/data.json", CLOUDFLARE_STATUS
),
"GitHub API Calls Remaining": response.data.resources.core.remaining,
"Installed Version": hacs.version,
"Stage": hacs.stage,
Expand All @@ -43,4 +40,9 @@ async def system_health_info(hass):
if hacs.system.disabled:
data["Disabled"] = hacs.system.disabled_reason

if hacs.configuration.experimental:
data["HACS Data"] = system_health.async_check_can_reach_url(
hass, "https://data-v2.hacs.xyz/data.json", CLOUDFLARE_STATUS
)

return data

0 comments on commit 816cd4b

Please sign in to comment.