Fixed incorrect exception messages
This commit is contained in:
parent
58894924a5
commit
433b3ee002
2 changed files with 2 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ public class DeviceTraitFactory {
|
|||
return new DeviceTrait[]{new SensorStateTrait(), new TemperatureControlTrait()};
|
||||
|
||||
default:
|
||||
throw new IllegalArgumentException("Unregistered Sensor device data: " + device.getDeviceData());
|
||||
throw new IllegalArgumentException("Unknown device device class: " + device.getDeviceConfig().getDeviceDataClass());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ public enum DeviceType {
|
|||
return SENSOR;
|
||||
|
||||
default:
|
||||
throw new IllegalArgumentException("Unregistered Sensor device data: " + device.getDeviceData());
|
||||
throw new IllegalArgumentException("Unknown device device class: " + device.getDeviceConfig().getDeviceDataClass());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue