Fix IllegalArgumentException when using oven channel 'type' (#11287)
Fixes #11286 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
1f18dda301
commit
c3ac604cdb
|
@ -88,7 +88,7 @@ public abstract class MieleApplianceHandler<E extends Enum<E> & ApplianceChannel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalArgumentException("Not valid value selector");
|
throw new IllegalArgumentException(String.format("Not valid value selector: %s", valueSelectorText));
|
||||||
}
|
}
|
||||||
|
|
||||||
public ApplianceChannelSelector getValueSelectorFromMieleID(String valueSelectorText)
|
public ApplianceChannelSelector getValueSelectorFromMieleID(String valueSelectorText)
|
||||||
|
@ -99,7 +99,7 @@ public abstract class MieleApplianceHandler<E extends Enum<E> & ApplianceChannel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalArgumentException("Not valid value selector");
|
throw new IllegalArgumentException(String.format("Not valid value selector: %s", valueSelectorText));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -46,6 +46,7 @@ public enum OvenChannelSelector implements ApplianceChannelSelector {
|
||||||
COMPANY_ID("companyId", "companyId", StringType.class, true),
|
COMPANY_ID("companyId", "companyId", StringType.class, true),
|
||||||
STATE("state", "state", StringType.class, false),
|
STATE("state", "state", StringType.class, false),
|
||||||
PROGRAMID("programId", "program", StringType.class, false),
|
PROGRAMID("programId", "program", StringType.class, false),
|
||||||
|
PROGRAMTYPE("programType", "type", StringType.class, false),
|
||||||
PROGRAMPHASE("phase", "phase", StringType.class, false),
|
PROGRAMPHASE("phase", "phase", StringType.class, false),
|
||||||
START_TIME("startTime", "start", DateTimeType.class, false) {
|
START_TIME("startTime", "start", DateTimeType.class, false) {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue