* Epsonprojector - Fix ONLINE status reporting
* review changes
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
State state = queryDataFromDevice(epsonCommand);
if (state != null) {
- updateStatus(ThingStatus.ONLINE);
if (isLinked(channel.getUID())) {
updateState(channel.getUID(), state);
}
+ // the first valid response will cause the thing to go ONLINE
+ if (state != UnDefType.UNDEF) {
+ updateStatus(ThingStatus.ONLINE);
+ }
}
} catch (IllegalArgumentException e) {
logger.warn("Unknown channel {}", channel.getUID().getId());