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")
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    """Register system health callbacks."""
    register.async_register_info(system_health_info)
예제 #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")
예제 #5
0
def async_register(hass: HomeAssistant,
                   register: system_health.SystemHealthRegistration) -> None:
    register.async_register_info(system_health_info)
예제 #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")