Skip to content

Commit ecccc77

Browse files
committed
Fix icons, bump version
1 parent 5b96914 commit ecccc77

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "remote-card",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "Lovelace Remote Card",
55
"keywords": [
66
"home-assistant",

src/const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const CARD_VERSION = '1.5.0';
1+
export const CARD_VERSION = '1.6.0';

src/remote-card.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ export class RemoteCard extends LitElement {
103103
padding: 16px 0 16px 0;
104104
}
105105
img,
106-
ha-icon-button {
106+
ha-icon {
107107
cursor: pointer;
108108
}
109-
ha-icon-button {
109+
ha-icon {
110110
--mdc-icon-button-size: 64px;
111111
--mdc-icon-size: 48px;
112112
}
@@ -137,7 +137,7 @@ export class RemoteCard extends LitElement {
137137
private _renderButton(button: RemoteButton): TemplateResult {
138138
if ('empty' in button && button.empty) {
139139
return html`
140-
<ha-icon-button></ha-icon-button>
140+
<ha-icon icon="mdi:none"></ha-icon>
141141
`;
142142
}
143143
button = button as ActionRemoteButton;
@@ -163,15 +163,16 @@ export class RemoteCard extends LitElement {
163163
return html`
164164
<ha-icon-button
165165
.button=${button}
166-
icon=${button.icon || 'mdi:radiobox-marked'}
167166
title=${button.title || ''}
168167
.action_config=${actionConfig}
169168
@action=${this._handleAction}
170169
.actionHandler=${actionHandler({
171170
hasHold: hasAction(button.actions?.hold_action),
172171
hasDoubleClick: hasAction(button.actions?.double_tap_action),
173172
})}
174-
></ha-icon-button>
173+
>
174+
<ha-icon .icon=${button.icon || 'mdi:radiobox-marked'}></ha-icon>
175+
</ha-icon-button>
175176
`;
176177
}
177178

0 commit comments

Comments
 (0)