Fixed incorrect exception messages

This commit is contained in:
Ziver Koc 2021-10-10 02:11:24 +02:00
parent 58894924a5
commit 433b3ee002
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ public class DeviceTraitFactory {
return new DeviceTrait[]{new SensorStateTrait(), new TemperatureControlTrait()}; return new DeviceTrait[]{new SensorStateTrait(), new TemperatureControlTrait()};
default: default:
throw new IllegalArgumentException("Unregistered Sensor device data: " + device.getDeviceData()); throw new IllegalArgumentException("Unknown device device class: " + device.getDeviceConfig().getDeviceDataClass());
} }
} }

View file

@ -163,7 +163,7 @@ public enum DeviceType {
return SENSOR; return SENSOR;
default: default:
throw new IllegalArgumentException("Unregistered Sensor device data: " + device.getDeviceData()); throw new IllegalArgumentException("Unknown device device class: " + device.getDeviceConfig().getDeviceDataClass());
} }
} }
} }