Skip to content

Commit 1803d27

Browse files
committed
yaml build update; cascade size update; logging update
1 parent b374378 commit 1803d27

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/build-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: |
7272
mkdir -p ./dist
7373
./create_full_yaml.sh --output ./dist/cb-lcars-lovelace.yaml --path ./src/cb-lcars
74-
echo "cb-lcars:" > ./dist/temp.yaml
74+
echo "cblcars:" > ./dist/temp.yaml
7575
echo " version: ${{ steps.get_version.outputs.version }}" >> ./dist/temp.yaml
7676
echo " manage_config: true" >> ./dist/temp.yaml
7777
cat ./dist/cb-lcars-lovelace.yaml >> ./dist/temp.yaml

src/cb-lcars.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import { CBLCARSDashboardStrategy, CBLCARSViewStrategy, CBLCARSViewStrategyAirlo
55
import { CBLCARSCardEditor } from './editor/cb-lcars-editor.js';
66
import { loadFont } from './utils/cb-lcars-theme.js';
77

8-
import { CBLCARSPanel } from './panel/cb-lcars-panel.js';
9-
10-
import { LitElement, html, css } from 'lit';
118
import { property, customElement, state } from 'lit/decorators.js';
12-
139
import { ButtonCard } from "./cblcars-button-card.js"
1410

11+
// WIP - do we want to make a panel for this?
12+
import { CBLCARSPanel } from './panel/cb-lcars-panel.js';
13+
1514
// Promises for loading the templates and stub configuration
1615
let templatesPromise;
1716
let stubConfigPromise;
@@ -136,7 +135,7 @@ class CBLCARSBaseCard extends ButtonCard {
136135
this._enableResizeObserver = config.enable_resize_observer || false;
137136

138137
// Set the _logLevel property from the config
139-
this._logLevel = config.log_level || 'info';
138+
this._logLevel = config.cblcars_log_level || 'info';
140139

141140
super.setConfig(this._config);
142141
cblcarsLog('debug',`${this.constructor.name}.setConfig() called with:`, this._config, this._logLevel);
@@ -200,7 +199,7 @@ class CBLCARSBaseCard extends ButtonCard {
200199

201200
// Check if the parent element has the class 'preview'
202201
if (this.parentElement && this.parentElement.classList.contains('preview')) {
203-
this.style.height = 'minmax(45px,120px)';
202+
this.style.height = '60px';
204203
} else {
205204
this.style.height = '100%';
206205
}

src/cb-lcars/cb-lcars-cascade.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ cb-lcars-cascade:
44
- cb-lcars-label
55
show_label: true
66
variables:
7+
card:
8+
height: "[[[ return this.offsetHeight; ]]]"
9+
width: "[[[ return this.offsetWidth; ]]]"
710
text:
811
label:
912
font_size: 24

src/utils/cb-lcars-logging.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let cblcarsGlobalLogLevel = 'info';
44

55
export function cblcarsSetGlobalLogLevel(level) {
66
cblcarsGlobalLogLevel = level;
7-
cblcarsLog('info',`Settging CBLCARS global log level set to: ${level}`);
7+
cblcarsLog('info',`Setting CBLCARS global log level set to: ${level}`, {}, 'info');
88
}
99
export function cblcarsGetGlobalLogLevel() {
1010
return cblcarsGlobalLogLevel;

0 commit comments

Comments
 (0)