From 5141e39dbebcef37dbf2f3380533e8ac15223e28 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 9 Nov 2024 15:25:21 -0800 Subject: [PATCH] docs: Fix `ptz_digital` typos (#1680) --- docs/configuration/actions/custom/README.md | 8 ++++---- src/components-lib/zoom/zoom-controller.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration/actions/custom/README.md b/docs/configuration/actions/custom/README.md index 09fd7c5e..ed45590a 100644 --- a/docs/configuration/actions/custom/README.md +++ b/docs/configuration/actions/custom/README.md @@ -332,14 +332,14 @@ Execute a digital PTZ action. ```yaml action: custom:frigate-card-action -frigate_card_action: ptz-digital +frigate_card_action: ptz_digital # [...] ``` | Parameter | Default | Description | | --------------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | `action` | | Must be `custom:frigate-card-action`. | -| `frigate_card_action` | | Must be `ptz-digital`. | +| `frigate_card_action` | | Must be `ptz_digital`. | | `target_id` | The currently selected camera or media | The target (camera or media) to execute a digital PTZ action on. Can be a camera ID, or another media ID (e.g. for Frigate, can specify a media/event ID). | | `ptz_action` | Optional action that is one of `left`, `right`, `up`, `down`, `zoom_in` or `zoom_out`. | | `ptz_phase` | Optional parameter that is one of `start` or `stop` to start or stop the movement separately. | @@ -370,14 +370,14 @@ action), otherwise a digital PTZ action will be run (equivalent to using the ```yaml action: custom:frigate-card-action -frigate_card_action: ptz-multi +frigate_card_action: ptz_multi # [...] ``` | Parameter | Description | | --------------------- | --------------------------------------------------------------------------------------------- | | `action` | Must be `custom:frigate-card-action`. | -| `frigate_card_action` | Must be `ptz-digital`. | +| `frigate_card_action` | Must be `ptz_multi`. | | `ptz_action` | Optional action that is one of `left`, `right`, `up`, `down`, `zoom_in` or `zoom_out`. | | `ptz_phase` | Optional parameter that is one of `start` or `stop` to start or stop the movement separately. | | `ptz_preset` | Optional preset to execute when the `ptz_action` is `preset`. | diff --git a/src/components-lib/zoom/zoom-controller.ts b/src/components-lib/zoom/zoom-controller.ts index 7144bdd2..2261e35a 100644 --- a/src/components-lib/zoom/zoom-controller.ts +++ b/src/components-lib/zoom/zoom-controller.ts @@ -33,7 +33,7 @@ export class ZoomController { protected _settings: PartialZoomSettings | null; // These values should be suitably less than the value of STEP_DELAY_SECONDS - // in the ptz-digital action, in order to ensure smooth movements of the + // in the ptz_digital action, in order to ensure smooth movements of the // digital PTZ actions. protected _debouncedChangeHandler = throttle(this._changeHandler.bind(this), 50); protected _debouncedUpdater = throttle(this._updateBasedOnConfig.bind(this), 50);