diff --git a/src/harmony-card.ts b/src/harmony-card.ts
index ebdc61a..42d883d 100644
--- a/src/harmony-card.ts
+++ b/src/harmony-card.ts
@@ -216,12 +216,12 @@ export class HarmonyCard extends LitElement {
var buttonStyles = Object.assign(styles || {}, { color: buttonConfig.color });
return html`
- this.deviceCommand(e, buttonConfig.device || device, buttonConfig.command || '')}"
@touchstart="${e => this.preventBubbling(e)}">
-
+
`;
}
@@ -254,8 +254,8 @@ export class HarmonyCard extends LitElement {
return html`
-
this.volumeCommand(e, 'volume_down')}" @touchstart="${e => this.preventBubbling(e)}">
-
this.volumeCommand(e, 'volume_up')}" @touchstart="${e => this.preventBubbling(e)}">
+
this.volumeCommand(e, 'volume_down')}" @touchstart="${e => this.preventBubbling(e)}">
+
this.volumeCommand(e, 'volume_up')}" @touchstart="${e => this.preventBubbling(e)}">
this.volumeCommand(e, 'volume_set', { volume_level: e.target.value / 100 })}
@click=${e => e.stopPropagation()}
@@ -267,7 +267,7 @@ export class HarmonyCard extends LitElement {
ignore-bar-touch pin>
-
this.volumeCommand(e, 'volume_mute', { is_volume_muted: true })}" @touchstart="${e => this.preventBubbling(e)}">
+
this.volumeCommand(e, 'volume_mute', { is_volume_muted: true })}" @touchstart="${e => this.preventBubbling(e)}">
`;
}
diff --git a/src/sharedStyle.ts b/src/sharedStyle.ts
index 3e8f706..7ed4807 100644
--- a/src/sharedStyle.ts
+++ b/src/sharedStyle.ts
@@ -24,17 +24,17 @@ const sharedStyle = css`
width: calc(var(--mmp-unit) * .6);
height: calc(var(--mmp-unit) * .6);
}
- paper-icon-button {
+ ha-icon-button {
width: var(--mmp-unit);
height: var(--mmp-unit);
color: var(--mmp-text-color, var(--primary-text-color));
transition: color .25s;
}
- paper-icon-button[color] {
+ ha-icon-button[color] {
color: var(--mmp-accent-color, var(--accent-color)) !important;
opacity: 1 !important;
}
- paper-icon-button[inactive] {
+ ha-icon-button[inactive] {
opacity: .5;
}