You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/values/PercentageValue.java
+9-4
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,10 @@ public class PercentageValue extends Value {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.generic/src/main/java/org/openhab/binding/mqtt/generic/values/ValueFactory.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public static Value createValueState(ChannelConfig config, String channelTypeID)
54
54
value = newNumberValue(config.min, config.max, config.step, UnitUtils.parseUnit(config.unit));
55
55
break;
56
56
caseMqttBindingConstants.DIMMER:
57
-
value = newPercentageValue(config.min, config.max, config.step, config.on, config.off);
57
+
value = newPercentageValue(config.min, config.max, config.step, config.on, config.off, null);
58
58
break;
59
59
caseMqttBindingConstants.COLOR_HSB:
60
60
value = newColorValue(ColorMode.HSB, config.on, config.off, config.onBrightness);
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.generic/src/test/java/org/openhab/binding/mqtt/generic/ChannelStateTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ public void receiveDecimalAsPercentageUnitTest() {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.generic/src/test/java/org/openhab/binding/mqtt/generic/values/ValueTests.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Fan.java
+9-5
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,9 @@ public class Fan extends AbstractComponent<Fan.ChannelConfiguration> implements
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Light.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,8 @@ public abstract class Light extends AbstractComponent<Light.ChannelConfiguration
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/TemplateSchemaLight.java
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Vacuum.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -173,7 +173,7 @@ ComponentChannelType.STRING, new TextValue(), updateListener, null,
173
173
if (supportedFeatures.contains(FEATURE_BATTERY)) {
Copy file name to clipboardexpand all lines: bundles/org.openhab.binding.mqtt.homeassistant/src/main/java/org/openhab/binding/mqtt/homeassistant/internal/component/Valve.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ public class Valve extends AbstractComponent<Valve.ChannelConfiguration> impleme
0 commit comments