Skip to content

Commit

Permalink
Fix error with enable program condition
Browse files Browse the repository at this point in the history
  • Loading branch information
petergridge authored Jun 4, 2023
1 parent 85df674 commit 959db4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irrigation-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class IrrigationCard extends HTMLElement {
filter.push({entity: hass.states[config.program].attributes[name + '_enable_zone'], state_not: onoff});
}
if (hass.states[config.program].attributes['irrigation_on']) {
filter.push({entity: hass.states[config.program].attributes[name + 'irrigation_on'], state_not: onoff});
filter.push({entity: hass.states[config.program].attributes['irrigation_on'], state_not: onoff});
}
return filter
}
Expand Down

0 comments on commit 959db4f

Please sign in to comment.