mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
spotless:apply
Signed-off-by: Laurent ARNAL <laurent@clae.net>
This commit is contained in:
parent
4b098f518c
commit
6ed7f867f0
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user