Skip to content

Commit

Permalink
Emergency Bug Fix
Browse files Browse the repository at this point in the history
v4.0.2

This release fixes some button override bugs introduced in 4.0.0
Issue Ref: #499

Can't see these changes after updating? Visit this link:
https://github.com/PRProd/HA-Firemote/wiki/Force-a-Refresh
  • Loading branch information
PRProd committed Sep 3, 2024
1 parent 8b1390c commit 69ed39c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions dist/HA-Firemote.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const HAFiremoteVersion = 'v4.0.1';
const HAFiremoteVersion = 'v4.0.2';

import {LitElement, html, css, unsafeHTML, unsafeCSS, styleMap} from './lit/lit-all.min.js';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.0.1";
import {rosettaStone} from './language-translations.js?version=v4.0.1';
import {devices} from './supported-devices.js?version=v4.0.1';
import {launcherData, launcherCSS} from "./launcher-buttons.js?version=v4.0.2";
import {rosettaStone} from './language-translations.js?version=v4.0.2';
import {devices} from './supported-devices.js?version=v4.0.2';

console.groupCollapsed("%c 🔥 FIREMOTE-CARD 🔥 %c "+HAFiremoteVersion+" installed ", "color: orange; font-weight: bold; background: black", "color: green; font-weight: bold;"),
console.log("Readme:", "https://github.com/PRProd/HA-Firemote"),
Expand Down Expand Up @@ -5057,7 +5057,7 @@ class FiremoteCard extends LitElement {
fireEvent(this, 'haptic', 'light'); // haptic feedback on success
return;
}
else if(typeof overrideDef.service !== 'undefined' && typeof overrideDef.target !== 'undefined') {
else if((typeof overrideDef.service !== 'undefined' || typeof overrideDef.action !== 'undefined') && typeof overrideDef.target !== 'undefined') {
// handle overrides via yaml instructions
var ServiceDetails = getCustomServiceArgs(overrideDef);
try{ _hass.callService(ServiceDetails[0], ServiceDetails[1], ServiceDetails[2]) }
Expand All @@ -5070,7 +5070,6 @@ class FiremoteCard extends LitElement {
}



// Handle custom launcher button clicks
// No HOLD actions for custom launchers are supported
var customLauncherIDPfx = new RegExp('customlauncher ')
Expand Down Expand Up @@ -5150,7 +5149,11 @@ class FiremoteCard extends LitElement {
}



// Catch-all for none/other configurations where a button hasn't been defined in YAML config
if(_config.entity === 'none') {
unsupportedButton();
return;
}


// detect difference between click or hold actions
Expand Down Expand Up @@ -7062,14 +7065,6 @@ class FiremoteCard extends LitElement {
}



// Catch-all for none/other configurations where a button hasn't been defined in YAML config
if(_config.entity === 'none') {
unsupportedButton();
return;
}


}


Expand Down

0 comments on commit 69ed39c

Please sign in to comment.