Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
J-N-K committed Nov 11, 2020
1 parent 6128a9b commit 4c37abb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public void initialize() {
logger.debug("Initializing Panasonic TV handler for uid '{}'", getThing().getUID());

discoveryServiceRegistry.addDiscoveryListener(this);

checkAndCreateServices();
}

@Override
Expand Down Expand Up @@ -266,14 +268,15 @@ private void checkAndCreateServices() {
}

private synchronized void createService(RemoteDevice device) {
String hostName = configuration.hostName;
if (hostName != null && hostName.equals(device.getIdentity().getDescriptorURL().getHost())) {
String modelName = device.getDetails().getModelDetails().getModelName();
String udn = device.getIdentity().getUdn().getIdentifierString();
String type = device.getType().getType();
String configHostname = configuration.hostName;
String modelName = device.getDetails().getModelDetails().getModelName();
String udn = device.getIdentity().getUdn().getIdentifierString();
String type = device.getType().getType();
String hostName = device.getIdentity().getDescriptorURL().getHost();

logger.debug(" modelName={}, udn={}, type={}", modelName, udn, type);
logger.debug("hostName={} modelName={}, udn={}, type={}", hostName, modelName, udn, type);

if (configHostname != null && configHostname.equals(hostName)) {
PanasonicTvService existingService = findServiceInstance(type);

if (existingService == null || !existingService.isUpnp()) {
Expand Down
4 changes: 2 additions & 2 deletions bundles/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@
<dependency>
<groupId>org.lastnpe.eea</groupId>
<artifactId>eea-all</artifactId>
<version>2.1.0</version>
<version>2.2.1</version>
</dependency>
<!-- openHAB core -->
<dependency>
Expand Down Expand Up @@ -504,7 +504,7 @@
<artifactItem>
<groupId>org.lastnpe.eea</groupId>
<artifactId>eea-all</artifactId>
<version>2.1.0</version>
<version>2.2.1</version>
<overWrite>true</overWrite>
</artifactItem>
</artifactItems>
Expand Down

0 comments on commit 4c37abb

Please sign in to comment.