]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fixes #9673 (#9762)
authormorph166955 <53797132+morph166955@users.noreply.github.com>
Sat, 9 Jan 2021 23:34:42 +0000 (17:34 -0600)
committerGitHub <noreply@github.com>
Sat, 9 Jan 2021 23:34:42 +0000 (00:34 +0100)
Signed-off-by: morph166955 <rosenblumb@gmail.com>
bundles/org.openhab.binding.samsungtv/src/main/java/org/openhab/binding/samsungtv/internal/handler/SamsungTvHandler.java

index 6a25e29a15de196b536ac85d709a17aec034dd55..8c09e86d019d94df95ea1d4ccad3cb2dc0243606 100644 (file)
@@ -325,7 +325,7 @@ public class SamsungTvHandler extends BaseThingHandler implements RegistryListen
     @Override
     public void remoteDeviceAdded(@Nullable Registry registry, @Nullable RemoteDevice device) {
         if (configuration.hostName != null && device != null && device.getIdentity() != null
-                && device.getIdentity().getDescriptorURL() == null
+                && device.getIdentity().getDescriptorURL() != null
                 && configuration.hostName.equals(device.getIdentity().getDescriptorURL().getHost())
                 && device.getType() != null) {
             logger.debug("remoteDeviceAdded: {}, {}", device.getType().getType(),