Merge pull request #26 from digitaldan/backport_of_1460
Backport of https://github.com/openhab/openhab/pull/1460pull/30/head
commit
dc79b2a815
|
@ -57,7 +57,7 @@ public interface ArithmeticGroupFunction extends GroupFunction {
|
|||
public State calculate(List<Item> items) {
|
||||
if(items!=null && items.size()>0) {
|
||||
for(Item item : items) {
|
||||
if(!activeState.equals(item.getState())) {
|
||||
if(!activeState.equals(item.getStateAs(activeState.getClass()))) {
|
||||
return passiveState;
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ public interface ArithmeticGroupFunction extends GroupFunction {
|
|||
public State calculate(List<Item> items) {
|
||||
if(items!=null) {
|
||||
for(Item item : items) {
|
||||
if(activeState.equals(item.getState())) {
|
||||
if(activeState.equals(item.getStateAs(activeState.getClass()))) {
|
||||
return activeState;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue