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