def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    """Register system health callbacks."""

    try:
        register.domain = INTEGRATION_DOMAIN
        register.async_register_info(system_health_info,
                                     "/config/integrations")
    except Exception as e:
        logger.error("System health registration failed")
예제 #2
0
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    """Register system health callbacks."""
    logger.debug("[system_health_register] Entered")

    try:
        register.domain = DOMAIN
        register.async_register_info(system_health_info,
                                     "/config/integrations")
        logger.debug(
            "[system_health_register] System health registration succeeded")
    except Exception as e:
        logger.error(
            "[system_health_register] System health registration failed")
예제 #3
0
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    """Register system health callbacks."""
    register.domain = "Home Assistant Community Store"
    register.async_register_info(system_health_info, "/hacs")