Add support for perform-action calls.

This commit is contained in:
Dermot Duffy
2024-09-09 22:05:49 -07:00
parent 804aa97d0b
commit a0283c35c1
14 changed files with 247 additions and 112 deletions
+4 -4
View File
@@ -1,15 +1,15 @@
import { describe, expect, it, vi } from 'vitest';
import { describe, expect, it } from 'vitest';
import {
getConfiguredPTZAction,
getConfiguredPTZMovementType,
getPTZCapabilitiesFromCameraConfig,
} from '../../../src/camera-manager/utils/ptz';
import { createCameraConfig } from '../../test-utils';
import { PTZAction } from '../../../src/config/ptz';
import { createCameraConfig } from '../../test-utils';
const action = {
action: 'call-service' as const,
service: 'service',
action: 'perform-action' as const,
perform_action: 'action',
data: {
device: '048123',
cmd: 'preset',