Merge pull request #26 from digitaldan/backport_of_1460

Backport of https://github.com/openhab/openhab/pull/1460
pull/30/head
Kai Kreuzer 2016-03-14 22:36:49 +01:00
commit dc79b2a815
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}