Fix IllegalArgumentException when using oven channel 'type' (#11287)

Fixes #11286

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
jlaur 2021-09-22 21:32:32 +02:00 committed by GitHub
parent 1f18dda301
commit c3ac604cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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)
@ -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

View File

@ -46,6 +46,7 @@ public enum OvenChannelSelector implements ApplianceChannelSelector {
COMPANY_ID("companyId", "companyId", StringType.class, true),
STATE("state", "state", StringType.class, false),
PROGRAMID("programId", "program", StringType.class, false),
PROGRAMTYPE("programType", "type", StringType.class, false),
PROGRAMPHASE("phase", "phase", StringType.class, false),
START_TIME("startTime", "start", DateTimeType.class, false) {
@Override