refactor: Retire the use of unmaintained custom-card-helpers (#1956)

- Closes #1295
This commit is contained in:
Dermot Duffy
2025-03-09 16:02:33 -07:00
committed by GitHub
parent c65ee3f0f2
commit a79ffa6edc
116 changed files with 933 additions and 545 deletions
+5 -4
View File
@@ -15,16 +15,17 @@ import {
MiniTimelineControlConfig,
ThumbnailsControlConfig,
} from '../config/types.js';
import { HomeAssistant } from '../ha/types.js';
import basicBlockStyle from '../scss/basic-block.scss';
import { ExtendedHomeAssistant } from '../types.js';
import { contentsChanged, dispatchAdvancedCameraCardEvent } from '../utils/basic.js';
import { contentsChanged } from '../utils/basic.js';
import { fireAdvancedCameraCardEvent } from '../utils/fire-advanced-camera-card-event.js';
import './surround-basic.js';
import { ThumbnailCarouselTap } from './thumbnail-carousel.js';
@customElement('advanced-camera-card-surround')
export class AdvancedCameraCardSurround extends LitElement {
@property({ attribute: false })
public hass?: ExtendedHomeAssistant;
public hass?: HomeAssistant;
@property({ attribute: false })
public viewManagerEpoch?: ViewManagerEpoch;
@@ -112,7 +113,7 @@ export class AdvancedCameraCardSurround extends LitElement {
// from the origin of the inbound event, so it can be handled by
// <advanced-camera-card-surround> .
if (this.thumbnailConfig && this._hasDrawer()) {
dispatchAdvancedCameraCardEvent(ev.composedPath()[0], 'drawer:' + action, {
fireAdvancedCameraCardEvent(ev.composedPath()[0], 'drawer:' + action, {
drawer: this.thumbnailConfig.mode,
});
}