mirror of
https://github.com/home-assistant/core.git
synced 2026-10-07 14:58:11 -04:00
Document queued Acaia button actions (#184024)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -61,4 +61,5 @@ class AcaiaButton(AcaiaEntity, ButtonEntity):
|
||||
@override
|
||||
async def async_press(self) -> None:
|
||||
"""Handle the button press."""
|
||||
# aioacaia queues button commands, so enqueueing cannot fail.
|
||||
await self.entity_description.press_fn(self._scale)
|
||||
|
||||
@@ -40,7 +40,9 @@ rules:
|
||||
action-exceptions:
|
||||
status: exempt
|
||||
comment: |
|
||||
No custom actions are defined.
|
||||
Button actions only enqueue commands; aioacaia writes them in a background task,
|
||||
and entities are unavailable while the scale is disconnected, so there is no
|
||||
failure to raise from the action.
|
||||
config-entry-unloading: done
|
||||
docs-configuration-parameters: done
|
||||
docs-installation-parameters: done
|
||||
|
||||
Reference in New Issue
Block a user