Fixed Channel suffix for newly created Things (#9430)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
This commit is contained in:
Christoph Weitkamp
2020-12-19 20:24:00 +01:00
committed by GitHub
parent 5f360acc1b
commit b3fa40ff64

View File

@@ -169,7 +169,7 @@ public class DwdUnwetterHandler extends BaseThingHandler {
}
private ChannelUID getChannelUuid(String typeId, int warningNumber) {
return new ChannelUID(getThing().getUID(), typeId + (warningNumber + 1));
return new ChannelUID(getThing().getUID(), typeId + warningNumber);
}
private ChannelUID getChannelUuid(String typeId) {
@@ -193,7 +193,7 @@ public class DwdUnwetterHandler extends BaseThingHandler {
}
private String getChannelLabelSuffix(int warningNumber) {
return "(" + (warningNumber + 1) + ")";
return "(" + warningNumber + ")";
}
/**