mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[tr064] fix comment in SOAP request (#9671)
* fix comment in SAOP request * fix typo in channel-name Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
parent
0fdf1e34c3
commit
bebc76e452
@ -219,7 +219,8 @@ public class Util {
|
||||
parameters.forEach(parameter -> {
|
||||
// remove comment: split parameter at '#', discard everything after that and remove
|
||||
// trailing spaces
|
||||
String normalizedParameter = UIDUtils.encode(parameter.split("#")[0].trim());
|
||||
String rawParameter = parameter.split("#")[0].trim();
|
||||
String normalizedParameter = UIDUtils.encode(rawParameter);
|
||||
ChannelUID channelUID = new ChannelUID(thing.getUID(),
|
||||
channelId + "_" + normalizedParameter);
|
||||
ChannelBuilder channelBuilder = ChannelBuilder
|
||||
@ -228,7 +229,7 @@ public class Util {
|
||||
.withLabel(channelTypeDescription.getLabel() + " " + parameter);
|
||||
thingBuilder.withChannel(channelBuilder.build());
|
||||
Tr064ChannelConfig channelConfig1 = new Tr064ChannelConfig(channelConfig);
|
||||
channelConfig1.setParameter(parameter);
|
||||
channelConfig1.setParameter(rawParameter);
|
||||
channels.put(channelUID, channelConfig1);
|
||||
});
|
||||
}
|
||||
|
@ -236,7 +236,7 @@
|
||||
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
||||
<getAction name="GetInfo" argument="NewDownstreamAttenuation"/>
|
||||
</channel>
|
||||
<channel name="dslUpstreamAttentuation" label="DSL Upstream Attenuation">
|
||||
<channel name="dslUpstreamAttenuation" label="DSL Upstream Attenuation">
|
||||
<item type="Number:Dimensionless" unit="dB" statePattern="%.1f dB"/>
|
||||
<service deviceType="urn:dslforum-org:device:WANDevice:1"
|
||||
serviceId="urn:WANDSLIfConfig-com:serviceId:WANDSLInterfaceConfig1"/>
|
||||
|
Loading…
Reference in New Issue
Block a user