docs: Fix ptz_digital typos (#1680)

This commit is contained in:
Dermot Duffy
2024-11-09 15:25:21 -08:00
committed by GitHub
parent 7e3266fecc
commit 5141e39dbe
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -332,14 +332,14 @@ Execute a digital PTZ action.
```yaml ```yaml
action: custom:frigate-card-action action: custom:frigate-card-action
frigate_card_action: ptz-digital frigate_card_action: ptz_digital
# [...] # [...]
``` ```
| Parameter | Default | Description | | Parameter | Default | Description |
| --------------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | | --------------------- | --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `action` | | Must be `custom:frigate-card-action`. | | `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). | | `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_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_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 ```yaml
action: custom:frigate-card-action action: custom:frigate-card-action
frigate_card_action: ptz-multi frigate_card_action: ptz_multi
# [...] # [...]
``` ```
| Parameter | Description | | Parameter | Description |
| --------------------- | --------------------------------------------------------------------------------------------- | | --------------------- | --------------------------------------------------------------------------------------------- |
| `action` | Must be `custom:frigate-card-action`. | | `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_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_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`. | | `ptz_preset` | Optional preset to execute when the `ptz_action` is `preset`. |
+1 -1
View File
@@ -33,7 +33,7 @@ export class ZoomController {
protected _settings: PartialZoomSettings | null; protected _settings: PartialZoomSettings | null;
// These values should be suitably less than the value of STEP_DELAY_SECONDS // 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. // digital PTZ actions.
protected _debouncedChangeHandler = throttle(this._changeHandler.bind(this), 50); protected _debouncedChangeHandler = throttle(this._changeHandler.bind(this), 50);
protected _debouncedUpdater = throttle(this._updateBasedOnConfig.bind(this), 50); protected _debouncedUpdater = throttle(this._updateBasedOnConfig.bind(this), 50);