spotless:apply

Signed-off-by: Laurent ARNAL <laurent@clae.net>
This commit is contained in:
Laurent ARNAL 2024-11-29 17:13:07 +01:00
parent 4b098f518c
commit 6ed7f867f0
3 changed files with 6 additions and 6 deletions

View File

@ -51,8 +51,8 @@ public class TidalActions implements ThingActions, ThingHandlerService {
@ActionInput(name = "deviceId", label = "@text/actions.play.device_id.label", description = "@text/actions.play.device_id.description", type = "java.lang.String", defaultValue = "") @Nullable String deviceId,
@ActionInput(name = "offset", label = "@text/actions.play.offset.label", description = "@text/actions.play.offset.description", type = "java.lang.Integer", defaultValue = "0") final int offset,
@ActionInput(name = "positionMs", label = "@text/actions.play.positions_ms.label", description = "@text/actions.play.positions_ms.description", type = "java.lang.Integer", defaultValue = "0") final int positionMs) {
((TidalBridgeHandler) getThingHandler()).getTidalApi().playTrack(deviceId == null ? "" : deviceId,
contextUri, offset, positionMs);
((TidalBridgeHandler) getThingHandler()).getTidalApi().playTrack(deviceId == null ? "" : deviceId, contextUri,
offset, positionMs);
}
/**

View File

@ -123,8 +123,8 @@ public class TidalDeviceDiscoveryService extends AbstractThingHandlerDiscoverySe
device.getId().substring(0, PLAYER_ID_LENGTH));
final DiscoveryResult discoveryResult = DiscoveryResultBuilder.create(thing).withBridge(bridgeUID)
.withProperties(properties).withRepresentationProperty(PROPERTY_TIDAL_DEVICE_NAME)
.withTTL(TTL_SECONDS).withLabel(device.getName()).build();
.withProperties(properties).withRepresentationProperty(PROPERTY_TIDAL_DEVICE_NAME).withTTL(TTL_SECONDS)
.withLabel(device.getName()).build();
thingDiscovered(discoveryResult);
}

View File

@ -138,8 +138,8 @@ public class TidalDeviceHandler extends BaseThingHandler {
if (getThing().getStatus() != ThingStatus.OFFLINE
&& getThing().getStatusInfo().getStatusDetail() != ThingStatusDetail.GONE) {
logger.debug("Device is gone: {}", thing.getUID());
getThing().setStatusInfo(new ThingStatusInfo(ThingStatus.OFFLINE, ThingStatusDetail.GONE,
"Device not available on Tidal"));
getThing().setStatusInfo(
new ThingStatusInfo(ThingStatus.OFFLINE, ThingStatusDetail.GONE, "Device not available on Tidal"));
updateChannelState(CHANNEL_DEVICERESTRICTED, OnOffType.ON);
updateChannelState(CHANNEL_DEVICEACTIVE, OnOffType.OFF);
updateChannelState(CHANNEL_DEVICEPLAYER, PlayPauseType.PAUSE);