Skip to content

Commit

Permalink
Trim blanks and invisible characters from property value for discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaufillet committed May 25, 2024
1 parent b1af980 commit ca8f8d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private synchronized void readDiscoveryProperties() throws IOException {
continue;
}

newProperties.add(new RequiredProperty(discoveryElement[0].trim(), unescape(discoveryElement[1].trim())));
newProperties.add(new RequiredProperty(discoveryElement[0].trim(), unescape(discoveryElement[1]).trim()));
}

if (newProperties.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ xiaomi_lumisensormagnet,modelId=lumi.sensor_magnet
xiaomi_lumiremotemini,modelId=lumi.remote.b1acn01
innr-rc-110,vendor=innr,modelId=RC 110
osram-switch-4x-eu,vendor=OSRAM,modelId=Switch 4x EU-LIGHTIFY
legrand_dimmer_without_neutral,vendor=\u001f Legrand,modelId=\u001f Dimmer switch w/o neutral
legrand_dimmer_without_neutral,vendor=Legrand,modelId=Dimmer switch w/o neutral
tuya_ts0041,modelId=TS0041
tuya_ts0042,modelId=TS0042
tuya_ts0043,modelId=TS0043
Expand Down

0 comments on commit ca8f8d0

Please sign in to comment.