mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[hueemulation] Fixed nullpointer in adjustedColorStateFromItemState (#8560)
Signed-off-by: Nicolai Grødum <grodum@gmail.com>
This commit is contained in:
+2
-1
@@ -450,7 +450,8 @@ public class StateUtils {
|
||||
}
|
||||
}
|
||||
} else if (lastCommand instanceof PercentType) {
|
||||
if (hueState instanceof HueStateBulb && itemState.as(PercentType.class).equals(lastCommand)) {
|
||||
if (hueState instanceof HueStateBulb && itemState != null
|
||||
&& lastCommand.equals(itemState.as(PercentType.class))) {
|
||||
if (lastHueChange.bri != null) {
|
||||
((HueStateBulb) hueState).bri = lastHueChange.bri;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user