properties.put(PROPERTY_FIRMWARE_VERSION, fwVersion);
}
return DiscoveryResultBuilder.create(thingUID).withProperties(properties)
- .withLabel("@text/discovery.gateway.label").withRepresentationProperty(GATEWAY_CONFIG_HOST)
+ .withLabel("@text/discovery.gateway.label").withRepresentationProperty(PROPERTY_SERIAL_NUMBER)
.build();
} else {
logger.warn("Discovered Tradfri gateway doesn't have an IP address: {}", service);
<label>TRÅDFRI Gateway</label>
<description>IKEA TRÅDFRI IP Gateway</description>
- <representation-property>host</representation-property>
+ <representation-property>serialNumber</representation-property>
<config-description-ref uri="bridge-type:tradfri:gateway"/>
</bridge-type>
assertThat(result.getProperties().get(Thing.PROPERTY_VENDOR), is("IKEA of Sweden"));
assertThat(result.getProperties().get(GATEWAY_CONFIG_HOST), is("192.168.0.5"));
assertThat(result.getProperties().get(GATEWAY_CONFIG_PORT), is(1234));
- assertThat(result.getRepresentationProperty(), is(GATEWAY_CONFIG_HOST));
+ assertThat(result.getRepresentationProperty(), is(Thing.PROPERTY_SERIAL_NUMBER));
}
@Test