Skip to content

Commit

Permalink
trim specs.friendlyName (may be related to #90)
Browse files Browse the repository at this point in the history
Signed-off-by: António Meireles <[email protected]>
  • Loading branch information
AntonioMeireles committed Jan 17, 2022
1 parent 9df8857 commit 4a68ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class VieramaticPlatform implements DynamicPlatformPlugin {
if (Abnormal(conn)) return conn
const tv = conn.value

tv.specs.friendlyName = device.friendlyName ?? tv.specs.friendlyName
tv.specs.friendlyName = (device.friendlyName ?? tv.specs.friendlyName).trim()
const accessory = new this.api.platformAccessory(
tv.specs.friendlyName,
tv.specs.serialNumber,
Expand Down

0 comments on commit 4a68ba0

Please sign in to comment.