Skip to content

Commit

Permalink
Merge pull request #337 from Barma-lej/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Barma-lej committed Apr 20, 2024
2 parents ae17c61 + 30cd1df commit d26260c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/landroid-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,12 @@ class LandroidCard extends LitElement {

let localizedStatus = localize(`status.${state}`) || state;

const error = this.getEntityObject(consts.SENSOR_ERROR_SUFFIX);
if (isObject(error) && error.attributes.id > 0) {
localizedStatus += `. ${
localize(`error.${error.state}`) || error.state || ''
} (${error.attributes.id})`;
}
// const error = this.getEntityObject(consts.SENSOR_ERROR_SUFFIX);
// if (isObject(error) && error.attributes.id > 0) {
// localizedStatus += `. ${
// localize(`error.${error.state}`) || error.state || ''
// } (${error.attributes.id})`;
// }

switch (state) {
case consts.STATE_RAINDELAY: {
Expand Down Expand Up @@ -794,7 +794,7 @@ class LandroidCard extends LitElement {
*/
selectedValueChanged(e, stateObj) {
if (e.target.value !== stateObj.state) {
// this.callService(e, stateObj.service);
// this.callService(e, 'number.set_value');
this.hass.callService('number', 'set_value', {
entity_id: stateObj.entity_id,
value: e.target.value,
Expand Down

0 comments on commit d26260c

Please sign in to comment.