home-assistant/core · error · UpdateFailed

ex

Error message

ex

What it means

UpdateFailed raised in AsusWrtBridge.async_get_data when the asusrouter library raises any AsusRouterError while fetching raw data (the new asusrouter-based API path). The library error is chained; 'ex' in the log is the exception repr. This is the generic failure signal for every sensor datatype fetched through this bridge method.

Source

Thrown at homeassistant/components/asuswrt/bridge.py:427

    async def async_disconnect(self) -> None:
        """Disconnect to the device."""
        await self._api.async_disconnect()

    async def _get_data(
        self,
        datatype: AsusData,
        force: bool = False,
    ) -> dict[str, Any]:
        """Get data from the device.

        This is a generic method which automatically converts to
        the Home Assistant-compatible format.
        """
        try:
            raw = await self._api.async_get_data(datatype, force=force)
            return translate_to_legacy(clean_dict(convert_to_ha_data(raw)))
        except AsusRouterError as ex:
            raise UpdateFailed(ex) from ex

    async def _get_sensors(self, datatype: AsusData) -> list[str]:
        """Get the available sensors.

        This is a generic method which automatically converts to
        the Home Assistant-compatible format.
        """
        sensors = []
        try:
            data = await self._api.async_get_data(datatype)
            # Get the list of sensors from the raw data
            # and translate in to the legacy format
            sensors = translate_to_legacy(convert_to_ha_sensors(data, datatype))
            _LOGGER.debug("Available `%s` sensors: %s", datatype.value, sensors)
        except AsusRouterError as ex:
            _LOGGER.warning(
                "Cannot get available `%s` sensors with exception: %s",
                datatype.value,

View on GitHub (pinned to 58a3fdb3ea)

Solutions

  1. Re-run the integration's reconfigure flow to refresh credentials/API access
  2. Update the asusrouter python package and the HA integration
  3. Verify the router's remote/HTTP API is enabled and the model is supported by asusrouter
  4. Check the chained exception in logs (UpdateFailed __cause__) for the library's specific message
Defensive patterns

Strategy: retry

Try / catch

try:
    data = await bridge.async_get_data(datatype)
except UpdateFailed as err:
    cause = err.__cause__  # original AsusRouterError
    _LOGGER.warning("asusrouter fetch failed: %r", cause)
    raise

Prevention

When it happens

Trigger: self._api.async_get_data(datatype, force=force) failing: HTTP API errors on newer ASUS routers, authentication errors, connection resets, unsupported datatype for the router model.

Common situations: Router HTTP API token expired or revoked; router model lacking a sensor (e.g. no temperature sensors); asusrouter library incompatible with the router's firmware API version.

Related errors


AI-assisted analysis of home-assistant/core@58a3fdb3ea (2026-08-14). Data as JSON: /api/errors/5136c8f79ed19acb. Report an issue: GitHub.