{"record":{"id":"1723530720a45afb","repo":"home-assistant/core","slug":"self-entity-id-does-not-support-action","errorCode":null,"errorMessage":"{self.entity_id} does not support {action}","messagePattern":"(.+?) does not support (.+?)","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"warning","filePath":"homeassistant/components/bond/light.py","lineNumber":154,"sourceCode":"        \"\"\"Turn on the light.\"\"\"\n        if brightness := kwargs.get(ATTR_BRIGHTNESS):\n            await self._bond.action(\n                self._device_id,\n                Action.set_brightness(round((brightness * 100) / 255)),\n            )\n        else:\n            await self._bond.action(self._device_id, Action.turn_light_on())\n\n    @override\n    async def async_turn_off(self, **kwargs: Any) -> None:\n        \"\"\"Turn off the light.\"\"\"\n        await self._bond.action(self._device_id, Action.turn_light_off())\n\n    @callback\n    def _async_has_action_or_raise(self, action: str) -> None:\n        \"\"\"Raise HomeAssistantError if the device does not support an action.\"\"\"\n        if not self._device.has_action(action):\n            raise HomeAssistantError(f\"{self.entity_id} does not support {action}\")\n\n    async def async_start_increasing_brightness(self) -> None:\n        \"\"\"Start increasing the light brightness.\"\"\"\n        _LOGGER.warning(\n            \"The bond.start_increasing_brightness service is deprecated and has been\"\n            \" replaced with a button; Call the button.press service instead\"\n        )\n        self._async_has_action_or_raise(Action.START_INCREASING_BRIGHTNESS)\n        await self._bond.action(\n            self._device_id, Action(Action.START_INCREASING_BRIGHTNESS)\n        )\n\n    async def async_start_decreasing_brightness(self) -> None:\n        \"\"\"Start decreasing the light brightness.\"\"\"\n        _LOGGER.warning(\n            \"The bond.start_decreasing_brightness service is deprecated and has been\"\n            \" replaced with a button; Call the button.press service instead\"\n        )","sourceCodeStart":136,"sourceCodeEnd":172,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/bond/light.py#L136-L172","documentation":"Raised by BondLight._async_has_action_or_raise when the Bond device's action list does not contain the requested action (e.g. Action.START_INCREASING_BRIGHTNESS for the deprecated start_increasing_brightness service). The entity checks self._device.has_action(action) locally and refuses before any API call.","triggerScenarios":"Calling the deprecated bond.start_increasing_brightness service (or start_decreasing) on a light whose Bond device profile omits that action; using the old service instead of the replacement button entity.","commonSituations":"Old automations still calling the deprecated service against devices that never had brightness actions; device re-paired with a more restricted profile.","solutions":["Switch the automation to the replacement button entity: use button.press on the Start Brightness Increase button instead of the deprecated service.","Verify the device supports the action in the Bond app (device actions list).","Remove the deprecated service call entirely — the log line already warns it is replaced by a button."],"exampleFix":"# before\nawait hass.services.async_call(\"bond\", \"start_increasing_brightness\", {\"entity_id\": \"light.x\"})\n# after\nawait hass.services.async_call(\"button\", \"press\", {\"entity_id\": \"button.x_start_brightness_increase\"})","handlingStrategy":"type-guard","validationCode":null,"typeGuard":"def light_has_action(entity, action: str) -> bool:\n    \"\"\"True when the Bond device's action list contains action.\"\"\"\n    device = getattr(entity, \"_device\", None)\n    return bool(device and device.has_action(action))","tryCatchPattern":"if not entity._device.has_action(Action.START_INCREASING_BRIGHTNESS):\n    _LOGGER.debug(\"skipping unsupported action\")\nelse:\n    await entity.async_start_increasing_brightness()","preventionTips":["Migrate off the deprecated bond services to the button entities.","Check device actions in the Bond app before scripting specialized commands."],"tags":["bond","light","capability","deprecated","home-assistant"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}