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")
Ejemplo n.º 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")
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    """Register system health callbacks."""
    register.async_register_info(system_health_info)
Ejemplo n.º 4
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")
Ejemplo n.º 5
0
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    register.async_register_info(system_health_info)
Ejemplo n.º 6
0
def async_register(
    hass: HomeAssistant, register: system_health.SystemHealthRegistration
) -> None:
    # pylint: disable=unused-argument
    """Register system health callbacks."""
    register.async_register_info(system_health_info, "/config/integrations")