mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Fix thing status text (#20780)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
+2
-3
@@ -93,7 +93,6 @@ public class KaleidescapeHandler extends BaseThingHandler implements Kaleidescap
|
||||
protected boolean isMuted = false;
|
||||
protected boolean isLoadHighlightedDetails = false;
|
||||
protected boolean isLoadAlbumDetails = false;
|
||||
protected String friendlyName = EMPTY;
|
||||
protected Object sequenceLock = new Object();
|
||||
|
||||
public KaleidescapeHandler(Thing thing, SerialPortManager serialPortManager, HttpClient httpClient) {
|
||||
@@ -327,7 +326,7 @@ public class KaleidescapeHandler extends BaseThingHandler implements Kaleidescap
|
||||
|
||||
if (ThingStatusDetail.BRIDGE_OFFLINE.equals(thing.getStatusInfo().getStatusDetail())) {
|
||||
// no longer in standby, update the status
|
||||
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, this.friendlyName);
|
||||
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE);
|
||||
}
|
||||
} catch (IllegalArgumentException e) {
|
||||
logger.debug("Unhandled message: key {} = {}", evt.getKey(), evt.getValue());
|
||||
@@ -400,7 +399,7 @@ public class KaleidescapeHandler extends BaseThingHandler implements Kaleidescap
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, error);
|
||||
return;
|
||||
}
|
||||
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE, this.friendlyName);
|
||||
updateStatus(ThingStatus.ONLINE, ThingStatusDetail.NONE);
|
||||
lastEventReceived = System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -604,8 +604,6 @@ public enum KaleidescapeMessageHandler {
|
||||
FRIENDLY_NAME {
|
||||
@Override
|
||||
public void handleMessage(String message, KaleidescapeHandler handler) {
|
||||
// example: 'Living Room'
|
||||
handler.friendlyName = message;
|
||||
handler.updateThingProperty(PROPERTY_FRIENDLY_NAME, message);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user