Ignore invalid elapsed/total time values (#15900)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>pull/15908/head
parent
97975cfbc2
commit
6a39bbf076
|
@ -205,6 +205,8 @@ public class RokuHandler extends BaseThingHandler {
|
|||
} else {
|
||||
updateState(TIME_TOTAL, UnDefType.UNDEF);
|
||||
}
|
||||
} catch (NumberFormatException e) {
|
||||
logger.debug("Unable to parse playerInfo integer value. Exception: {}", e.getMessage());
|
||||
} catch (RokuHttpException e) {
|
||||
logger.debug("Unable to retrieve Roku media-player info. Exception: {}", e.getMessage(), e);
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
|
||||
|
|
Loading…
Reference in New Issue