feat: Implement support for gesture-based PTZ control (#2378)

- Closes: #1839
This commit is contained in:
Dermot Duffy
2026-02-28 20:36:53 -08:00
committed by GitHub
parent 40ad3b4460
commit ea86ad0016
32 changed files with 1714 additions and 126 deletions
+19
View File
@@ -977,6 +977,25 @@ describe('should handle version specific upgrades', () => {
});
postUpgradeChecks(config);
});
it('should not upgrade ptz settings-only config', () => {
const config = {
type: 'custom:advanced-camera-card',
cameras: [{ camera_entity: 'camera.office' }],
live: {
controls: {
ptz: {
type: 'gestures',
hide_type: true,
mode: 'on',
orientation: 'vertical',
position: 'bottom-right',
},
},
},
};
expect(upgradeConfig(config)).toBeFalsy();
});
});
it('should move view.timeout_seconds', () => {