Skip to content

Commit

Permalink
[miio] Fix double stratus update (openhab#9901)
Browse files Browse the repository at this point in the history
closing: openhab#9898

Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv authored and thinkingstone committed Nov 7, 2021
1 parent 4ce34e3 commit 9957168
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ private void quantityTypeUpdate(MiIoBasicChannel basicChannel, JsonElement val,
logger.debug("'{}' channel '{}' has unit '{}' with symbol '{}'.", getThing().getUID(),
basicChannel.getChannel(), basicChannel.getUnit(), unit);
updateState(basicChannel.getChannel(), new QuantityType<>(val.getAsBigDecimal(), unit));
return;
} else {
logger.debug("Unit '{}' used by '{}' channel '{}' is not found.. using default unit.",
getThing().getUID(), basicChannel.getUnit(), basicChannel.getChannel());
Expand Down

0 comments on commit 9957168

Please sign in to comment.