Add fit_zones parameter to map card (#18760)

This commit is contained in:
Márton Braun 2023-11-28 11:04:43 +01:00 committed by GitHub
parent ffb19b31a5
commit 71a41be20a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
.zoom=${this._config.default_zoom ?? DEFAULT_ZOOM} .zoom=${this._config.default_zoom ?? DEFAULT_ZOOM}
.paths=${this._getHistoryPaths(this._config, this._stateHistory)} .paths=${this._getHistoryPaths(this._config, this._stateHistory)}
.autoFit=${this._config.auto_fit} .autoFit=${this._config.auto_fit}
.fitZones=${this._config.fit_zones}
.darkMode=${this._config.dark_mode} .darkMode=${this._config.dark_mode}
interactiveZones interactiveZones
renderPassive renderPassive

View File

@ -295,6 +295,7 @@ export interface MapCardConfig extends LovelaceCardConfig {
title?: string; title?: string;
aspect_ratio?: string; aspect_ratio?: string;
auto_fit?: boolean; auto_fit?: boolean;
fit_zones?: boolean;
default_zoom?: number; default_zoom?: number;
entities?: Array<EntityConfig | string>; entities?: Array<EntityConfig | string>;
hours_to_show?: number; hours_to_show?: number;