Fix BaseThingHandler.initialize() deprecations (#8553)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2020-09-23 13:32:46 +02:00
committed by GitHub
parent 613c2e1082
commit f156a80d2f
4 changed files with 13 additions and 2 deletions

View File

@@ -57,6 +57,11 @@ public class NeatoAccountHandler extends BaseBridgeHandler {
public void handleCommand(ChannelUID channelUID, Command command) {
}
@Override
public void initialize() {
updateStatus(ThingStatus.ONLINE);
}
private List<Robot> sendGetRobots(String accessToken) {
Properties headers = new Properties();
headers.setProperty("Accept", "application/vnd.neato.nucleo.v1");