feat: Add UI support for PTZ presets (#1920)

- Closes #1889

Whilst a simple change theoretically, the card has such a collection of
surfaces that can overlap other surfaces, it's challenging to get this
to work right! There's a real chance this will have broken something
z-index related (e.g. X overlaps Y when it should not), or (for related
reasons) broken curver corners on the card.
This commit is contained in:
Dermot Duffy
2025-02-27 20:22:12 -08:00
committed by GitHub
parent bb147a45fd
commit 0432eea4b8
37 changed files with 833 additions and 647 deletions
+1
View File
@@ -396,6 +396,7 @@ export class AdvancedCameraCardViewerCarousel extends LitElement {
</advanced-camera-card-carousel>
${view
? html` <advanced-camera-card-ptz
.hass=${this.hass}
.config=${this.viewerConfig?.controls.ptz}
.forceVisibility=${view?.context?.ptzControls?.enabled}
>