Allow sending QuantityType to NumberItem (#3115)

NumberItems always accept QuantityType

Signed-off-by: Cody Cutrer <cody@cutrer.us>
pull/3116/head
Cody Cutrer 2022-10-15 01:31:30 -06:00 committed by GitHub
parent 07be655b0e
commit 7f38d419c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ public class NumberItem extends GenericItem {
internalSend(command);
}
public void send(QuantityType command) {
internalSend(command);
}
@Override
public @Nullable StateDescription getStateDescription(@Nullable Locale locale) {
StateDescription stateDescription = super.getStateDescription(locale);