From 80fc5db373755b8722daa511966962e04859fcee Mon Sep 17 00:00:00 2001 From: lolodomo Date: Tue, 1 Oct 2024 22:07:55 +0200 Subject: [PATCH] [warmup] Set Dimension to QuantityType (#17492) Signed-off-by: Laurent Garnier --- .../warmup/internal/action/WarmupActions.java | 11 +++++++---- .../warmup/internal/handler/RoomHandler.java | 14 +++++++++----- .../internal/handler/WarmupThingHandler.java | 4 +++- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java b/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java index 3960205068ca6..964127926e6de 100644 --- a/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java +++ b/bundles/org.openhab.binding.warmup/src/main/java/org/openhab/binding/warmup/internal/action/WarmupActions.java @@ -12,6 +12,9 @@ */ package org.openhab.binding.warmup.internal.action; +import javax.measure.quantity.Temperature; +import javax.measure.quantity.Time; + import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; import org.openhab.binding.warmup.internal.handler.RoomHandler; @@ -53,8 +56,8 @@ public void setThingHandler(@Nullable ThingHandler handler) { @RuleAction(label = "override", description = "Overrides the thermostat state for a specified time") public void setOverride( - @ActionInput(name = "temperature", label = "Temperature") @Nullable QuantityType temperature, - @ActionInput(name = "duration", label = "Duration") @Nullable QuantityType duration) { + @ActionInput(name = "temperature", label = "Temperature") @Nullable QuantityType temperature, + @ActionInput(name = "duration", label = "Duration") @Nullable QuantityType