Skip to content

Commit

Permalink
Merge pull request #118 from JonahKr/dev
Browse files Browse the repository at this point in the history
Fixing Checkbox Labels #116
  • Loading branch information
JonahKr authored Nov 22, 2022
2 parents 4366e87 + 9c863d2 commit 2232830
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "power-distribution-card",
"version": "2.5.5",
"version": "2.5.6",
"license": "MIT",
"author": "JonahKr",
"description": "A Lovelace Card for visualizing power distributions.",
Expand Down
10 changes: 5 additions & 5 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export class PowerDistributionCardEditor extends LitElement implements LovelaceC
*/
protected async firstUpdated(): Promise<void> {
if (!customElements.get('ha-form') || !customElements.get('hui-action-editor')) {
(customElements.get('hui-button-card') as any)?.getConfigElement();
(customElements.get('hui-button-card') as HassCustomElement)?.getConfigElement();
}

if (!customElements.get('ha-entity-picker')) {
(customElements.get('hui-entities-card') as any)?.getConfigElement();
(customElements.get('hui-entities-card') as HassCustomElement)?.getConfigElement();
}
}

Expand Down Expand Up @@ -256,7 +256,7 @@ export class PowerDistributionCardEditor extends LitElement implements LovelaceC
.configValue=${'hide_arrows'}
@change=${this._itemEntityChanged}
/>
<label for="invert-value"> ${localize('editor.settings.hide-arrows')}</label>
<label for="hide-arrows"> ${localize('editor.settings.hide-arrows')}</label>
</div>
</div>
<div class="side-by-side">
Expand Down Expand Up @@ -383,12 +383,12 @@ export class PowerDistributionCardEditor extends LitElement implements LovelaceC
<div class="checkbox">
<input
type="checkbox"
id="hide-arrows"
id="secondary_info_replace_name"
.checked="${item.secondary_info_replace_name || false}"
.configValue=${'secondary_info_replace_name'}
@change=${this._itemEntityChanged}
/>
<label for="invert-value"> ${localize('editor.settings.replace_name')}</label>
<label for="secondary_info_replace_name"> ${localize('editor.settings.replace_name')}</label>
</div>
<br />
<h3>${localize('editor.settings.color-settings', true)}</h3>
Expand Down
1 change: 1 addition & 0 deletions src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export const styles = css`
value {
float: right;
width: 54px;
}
value > p {
Expand Down

0 comments on commit 2232830

Please sign in to comment.