mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Remove some redundant brackets (#16104)
Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
09cedf00e3
commit
891ea04a3b
@ -60,7 +60,7 @@ public final class EcobeeUtils {
|
||||
* Set the state to the passed value. If value is null, set the state to UNDEF
|
||||
*/
|
||||
public static State undefOrOnOff(@Nullable Boolean value) {
|
||||
return value == null ? UnDefType.UNDEF : OnOffType.from((value));
|
||||
return value == null ? UnDefType.UNDEF : OnOffType.from(value);
|
||||
}
|
||||
|
||||
public static State undefOrString(@Nullable String value) {
|
||||
|
@ -727,7 +727,7 @@ public class LivisiBridgeHandler extends BaseBridgeHandler
|
||||
(capabilityId) -> client.setVariableActuatorState(capabilityId, state));
|
||||
// PSS / PSSO / ISS2 / BT-PSS
|
||||
} else if (DEVICE_PSS.equals(deviceType) || DEVICE_PSSO.equals(deviceType) || DEVICE_ISS2.equals(deviceType)
|
||||
|| DEVICE_BT_PSS.equals((deviceType))) {
|
||||
|| DEVICE_BT_PSS.equals(deviceType)) {
|
||||
executeCommand(deviceId, CapabilityDTO.TYPE_SWITCHACTUATOR,
|
||||
(capabilityId) -> client.setSwitchActuatorState(capabilityId, state));
|
||||
}
|
||||
|
@ -997,7 +997,7 @@ public class MaxCubeBridgeHandler extends BaseBridgeHandler {
|
||||
|
||||
private boolean socketConnect() throws UnknownHostException, IOException {
|
||||
socket = new Socket(ipAddress, port);
|
||||
socket.setSoTimeout((NETWORK_TIMEOUT));
|
||||
socket.setSoTimeout(NETWORK_TIMEOUT);
|
||||
logger.debug("Open new connection... to {} port {}", ipAddress, port);
|
||||
reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), StandardCharsets.UTF_8));
|
||||
writer = new OutputStreamWriter(socket.getOutputStream(), StandardCharsets.UTF_8);
|
||||
|
Loading…
Reference in New Issue
Block a user