(hass)
return {
        "GitHub API": system_health.async_check_can_reach_url(
            hass, BASE_API_URL, GITHUB_STATUS
        ),
        "Github API Calls Remaining": rate_limit.get("remaining", "0"),
        "Installed Version": client.version,
        "Stage": client.stage,
        "Available Repositories": len(client.repositories),
        "Installed Repositories": len(
            [repo for repo in client.repositories if repo.data.installed]
        ),
    }
Get info for the info page.
Get info for the info page.
Get info for the info page .
async def system_health_info(hass):
    """Get info for the info page."""
    client: HacsBase = hass.data[DOMAIN]
    rate_limit = await client.github.get_rate_limit()

    return {
        "GitHub API": system_health.async_check_can_reach_url(
            hass, BASE_API_URL, GITHUB_STATUS
        ),
        "Github API Calls Remaining": rate_limit.get("remaining", "0"),
        "Installed Version": client.version,
        "Stage": client.stage,
        "Available Repositories": len(client.repositories),
        "Installed Repositories": len(
            [repo for repo in client.repositories if repo.data.installed]
        ),
    }
async def system_health_info ( hass ) : client : HacsBase = hass . data [ DOMAIN ] rate_limit = await client . github . get_rate_limit ( ) return { "GitHub API" : system_health . async_check_can_reach_url ( hass , BASE_API_URL , GITHUB_STATUS ) , "Github API Calls Remaining" : rate_limit . get ( "remaining" , "0" ) , "Installed Version" : client . version , "Stage" : client . stage , "Available Repositories" : len ( client . repositories ) , "Installed Repositories" : len ( [ repo for repo in client . repositories if repo . data . installed ] ) , }