Skip to content

Commit

Permalink
removed welcome toast message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Prehn committed Jan 27, 2016
1 parent 9649133 commit 97afaf7
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public void onReceiveCommand(final ConnectableDevice d, final String clazz, fina
}
}

@Override
public void onDeviceReady(ConnectableDevice device, Collection<ConnectSDKBindingProvider> providers,
EventPublisher eventPublisher) {
super.onDeviceReady(device, providers, eventPublisher);
if(!findMatchingItemNames(device, providers).isEmpty()) { // only send hello world, if at least one toast Control item is configured
onReceiveCommand(device, getItemClass(), getItemProperty(), new StringType("Welcome to Openhab!"));
}
}
// @Override
// public void onDeviceReady(ConnectableDevice device, Collection<ConnectSDKBindingProvider> providers,
// EventPublisher eventPublisher) {
// super.onDeviceReady(device, providers, eventPublisher);
// if(!findMatchingItemNames(device, providers).isEmpty()) { // only send hello world, if at least one toast Control item is configured
// onReceiveCommand(device, getItemClass(), getItemProperty(), new StringType("Welcome to Openhab!"));
// }
// }

}

0 comments on commit 97afaf7

Please sign in to comment.