fix: Camera aspect-ratio should always apply (#2114)

- Closes #2073
This commit is contained in:
Dermot Duffy
2025-07-13 14:56:03 -07:00
committed by GitHub
parent d0bfb97843
commit c3e7cef9cf
29 changed files with 812 additions and 201 deletions
+10
View File
@@ -129,6 +129,15 @@ class AdvancedCameraCard extends LitElement {
}
}
set isPanel(isPanel: boolean) {
this._controller.getConditionStateManager().setState({
panel: isPanel,
});
}
get isPanel(): boolean {
return !!this._controller.getConditionStateManager().getState().panel;
}
public static async getConfigElement(): Promise<LovelaceCardEditor> {
return await CardController.getConfigElement();
}
@@ -380,6 +389,7 @@ class AdvancedCameraCard extends LitElement {
.configManager=${this._controller.getConfigManager()}
.hide=${!!this._controller.getMessageManager().hasMessage()}
.microphoneState=${this._controller.getMicrophoneManager().getState()}
.conditionStateManager=${this._controller.getConditionStateManager()}
.triggeredCameraIDs=${this._config?.view.triggers.show_trigger_status
? this._controller.getTriggersManager().getTriggeredCameraIDs()
: undefined}