Skip to content

Commit

Permalink
fix android tv max source to use deep link as it works now, include e…
Browse files Browse the repository at this point in the history
…ntire card config in child element config
  • Loading branch information
Nerwyn committed Nov 17, 2024
1 parent 06dbeec commit b33b492
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/universal-remote-card.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/models/maps/android_tv/defaultSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export const androidTVDefaultSources: IElementConfig[] = [
name: 'max',
tap_action: {
action: 'source',
source: 'com.wbd.stream',
}, // BROKEN
source: 'https://play.max.com',
},
icon: 'max',
},
{
Expand Down
10 changes: 2 additions & 8 deletions src/universal-remote-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ console.info(
class UniversalRemoteCard extends LitElement {
@property() hass!: HomeAssistant;
@property() config!: IConfig;
contextConfig!: IConfig;

DEFAULT_ACTIONS: IElementConfig[] = [];

Expand Down Expand Up @@ -280,8 +279,8 @@ class UniversalRemoteCard extends LitElement {
}
}

// Add parent card config (without arrays) to element config for templating
updatedElement.card = this.contextConfig;
// Add parent card config to element config for templating
updatedElement.card = this.config;

return updatedElement;
}
Expand Down Expand Up @@ -585,11 +584,6 @@ class UniversalRemoteCard extends LitElement {
return html``;
}

this.contextConfig = structuredClone(this.config);
delete this.contextConfig.custom_actions;
delete this.contextConfig.custom_icons;
delete this.contextConfig.rows;

const context = {
config: {
...this.config,
Expand Down

0 comments on commit b33b492

Please sign in to comment.