Skip to content

Commit

Permalink
Merge pull request #19 from snootched/dev
Browse files Browse the repository at this point in the history
Pull from dev - multimeter and form fixes
  • Loading branch information
snootched authored Jan 3, 2025
2 parents adaab44 + 790794f commit 6578bdb
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 45 deletions.
14 changes: 7 additions & 7 deletions dist/cb-lcars-card-editor-forms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,7 @@ cb-lcars-base-controls:
headerLevel: 4
icon: "mdi:format-list-bulleted"
noCollapse: false
visibilityCondition: "this._config.variables.animation.cascade.pattern === 'custom'"
visibilityCondition: "(this._config?.variables?.animation?.cascade?.pattern ?? '') === 'custom'"
rows:
- controls:
- type: Message
Expand Down Expand Up @@ -5930,12 +5930,12 @@ cb-lcars-multimeter-card:
cssClass: "form-row two-controls"
controls:
- <<: *colorLCARSListControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- <<: *colorControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- controls:
- <<: *colorPreviewControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- controls:
- label: "Gradient: Match [Right/Bottom] to Entity Color"
configValue: "variables.entity_match_slider_end"
Expand All @@ -5955,9 +5955,9 @@ cb-lcars-multimeter-card:
cssClass: "form-row two-controls"
controls:
- <<: *colorLCARSListControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
- <<: *colorControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
- controls:
- <<: *colorPreviewControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
2 changes: 1 addition & 1 deletion dist/cb-lcars-lovelace.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cblcars:
version: 2025.01.1a
version: 2025.01.1b
manage_config: true
cblcars_card_templates:
cb-lcars-button-capped:
Expand Down
36 changes: 18 additions & 18 deletions dist/cb-lcars.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cb-lcars.js.map

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cb-lcars",
"version": "2025.01.1a",
"version": "2025.01.1b",
"description": "Home Assistant LCARS libary built on custom-button-card",
"main": "index.js",
"author": "Jason Weyermars",
Expand Down Expand Up @@ -29,7 +29,7 @@
"webpack-dev-server": "^5.0.4"
},
"dependencies": {
"ha-card-formbuilder": "github:snootched/ha-card-formbuilder",
"ha-editor-formbuilder-yaml": "github:snootched/ha-card-formbuilder",
"js-yaml": "^4.1.0"
}
}
}
14 changes: 7 additions & 7 deletions src/cb-lcars-card-editor-forms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2570,7 +2570,7 @@ cb-lcars-base-controls:
headerLevel: 4
icon: "mdi:format-list-bulleted"
noCollapse: false
visibilityCondition: "this._config.variables.animation.cascade.pattern === 'custom'"
visibilityCondition: "(this._config?.variables?.animation?.cascade?.pattern ?? '') === 'custom'"
rows:
- controls:
- type: Message
Expand Down Expand Up @@ -5930,12 +5930,12 @@ cb-lcars-multimeter-card:
cssClass: "form-row two-controls"
controls:
- <<: *colorLCARSListControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- <<: *colorControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- controls:
- <<: *colorPreviewControl
configValue: "variables.slider_track.meter.gradient_start_color"
configValue: "variables.slider_track.gradient_start_color"
- controls:
- label: "Gradient: Match [Right/Bottom] to Entity Color"
configValue: "variables.entity_match_slider_end"
Expand All @@ -5955,9 +5955,9 @@ cb-lcars-multimeter-card:
cssClass: "form-row two-controls"
controls:
- <<: *colorLCARSListControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
- <<: *colorControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
- controls:
- <<: *colorPreviewControl
configValue: "variables.slider_track.meter.gradient_end_color"
configValue: "variables.slider_track.gradient_end_color"
2 changes: 1 addition & 1 deletion src/editor/cb-lcars-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readYamlFile } from '../utils/cb-lcars-fileutils.js';

import { html, css, unsafeCSS } from 'lit';

import EditorForm from 'ha-card-formbuilder';
import EditorForm from 'ha-editor-formbuilder-yaml';

export class CBLCARSCardEditor extends EditorForm {

Expand Down

0 comments on commit 6578bdb

Please sign in to comment.