Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,7 @@ private State toNumericState(Channel channel, float state) {
if (unit != null) {
return new QuantityType<>(state, unit);
} else {
logger.warn("[{}] Unit '{}' unknown to openHAB, returning DecimalType for state '{}' on channel '{}'",
handler.getLogPrefix(), unitString, state, channel.getUID());
return new DecimalType(state);

}
} else {
return new DecimalType(state);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void buildChannels(ListEntitiesSensorResponse rsp) {
if (isOHSupportedUnit(unitOfMeasurement)) {
configuration.put("unit", unitOfMeasurement);
} else {
logger.warn("[{}] Unit of measurement '{}' is not supported by openHAB, ignoring",
logger.info("[{}] Unit of measurement '{}' is not supported by openHAB, ignoring",
handler.getLogPrefix(), unitOfMeasurement);
itemType = "Number";
}
Expand Down
Loading