[hue] Cleanup code (#15715)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
181c647bd6
commit
e9305c3709
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal
@ -341,7 +341,7 @@ public class Clip2Bridge implements Closeable {
|
||||
RESET,
|
||||
IDLE,
|
||||
GO_AWAY,
|
||||
UNAUTHORIZED;
|
||||
UNAUTHORIZED
|
||||
}
|
||||
|
||||
/**
|
||||
@ -447,7 +447,7 @@ public class Clip2Bridge implements Closeable {
|
||||
/**
|
||||
* Enum showing the online state of the session connection.
|
||||
*/
|
||||
private static enum State {
|
||||
private enum State {
|
||||
/**
|
||||
* Session closed
|
||||
*/
|
||||
@ -459,7 +459,7 @@ public class Clip2Bridge implements Closeable {
|
||||
/**
|
||||
* Session open for HTTP calls and actively receiving SSE events
|
||||
*/
|
||||
ACTIVE;
|
||||
ACTIVE
|
||||
}
|
||||
|
||||
/**
|
||||
|
3
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/dto/ApiVersion.java
3
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/dto/ApiVersion.java
@ -41,8 +41,7 @@ public class ApiVersion {
|
||||
String microString = matcher.group(4);
|
||||
int micro = Integer.parseInt(microString == null ? "0" : microString);
|
||||
|
||||
ApiVersion apiVersion = new ApiVersion(major, minor, micro);
|
||||
return apiVersion;
|
||||
return new ApiVersion(major, minor, micro);
|
||||
}
|
||||
|
||||
throw new IllegalArgumentException("Version \"" + version + "\" is not valid");
|
||||
|
@ -23,5 +23,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
public enum BatteryStateType {
|
||||
NORMAL,
|
||||
LOW,
|
||||
CRITICAL;
|
||||
CRITICAL
|
||||
}
|
||||
|
@ -25,5 +25,5 @@ public enum ButtonEventType {
|
||||
REPEAT,
|
||||
SHORT_RELEASE,
|
||||
LONG_RELEASE,
|
||||
DOUBLE_SHORT_RELEASE;
|
||||
DOUBLE_SHORT_RELEASE
|
||||
}
|
||||
|
@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@NonNullByDefault
|
||||
public enum DirectionType {
|
||||
CLOCK_WISE,
|
||||
COUNTER_CLOCK_WISE;
|
||||
COUNTER_CLOCK_WISE
|
||||
}
|
||||
|
@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
@NonNullByDefault
|
||||
public enum RotationEventType {
|
||||
START,
|
||||
REPEAT;
|
||||
REPEAT
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public class ClipHandler extends HueSensorHandler {
|
||||
return new SensorConfigUpdate();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doSensorStateChanged(FullSensor sensor, Configuration config) {
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user