Another fix
This commit is contained in:
parent
02f9d4fcb7
commit
08fd1b6edd
1 changed files with 1 additions and 1 deletions
|
|
@ -200,7 +200,7 @@ public class SmartHomeImpl extends SmartHomeApp implements TokenRegistrationList
|
|||
DeviceTrait[] traits = DeviceTraitFactory.getTraits(device);
|
||||
Map<String, Object> deviceState = new HashMap<>();
|
||||
|
||||
if (traits != null) {
|
||||
if (traits.length > 0) {
|
||||
for (DeviceTrait trait : traits) {
|
||||
deviceState.putAll(trait.generateQueryResponse(device.getDeviceData()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue