Remove deprecated handleUpdate from ThingHandler (#8558)
The handleUpdate method was deprecated when profiles were introduced (see eclipse-archived/smarthome#4108). Instead the "follow profile" can be used which forwards item updates as commands to handlers. This profile works with any binding instead of only those that implement the handleUpdate method. Related to openhab/openhab-core#1669 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -27,7 +27,6 @@ import org.openhab.core.library.types.PercentType;
|
||||
import org.openhab.core.thing.ChannelUID;
|
||||
import org.openhab.core.thing.Thing;
|
||||
import org.openhab.core.types.Command;
|
||||
import org.openhab.core.types.State;
|
||||
|
||||
/**
|
||||
* Handler for RadioRA dimmers
|
||||
@@ -76,14 +75,6 @@ public class DimmerHandler extends LutronHandler {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleUpdate(ChannelUID channelUID, State newState) {
|
||||
if (LutronBindingConstants.CHANNEL_LIGHTLEVEL.equals(channelUID.getId())) {
|
||||
PercentType percent = (PercentType) newState.as(PercentType.class);
|
||||
updateInternalState(percent.intValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleFeedback(RadioRAFeedback feedback) {
|
||||
if (feedback instanceof LocalZoneChangeFeedback) {
|
||||
|
||||
Reference in New Issue
Block a user