1 parent 771986b commit 2d435dbCopy full SHA for 2d435db
1 file changed
bundles/org.openhab.core/src/main/java/org/openhab/core/items/GenericItem.java
@@ -580,10 +580,7 @@ protected void logSetTypeError(TimeSeries timeSeries) {
580
581
protected @Nullable CommandDescription getCommandOptions(@Nullable Locale locale) {
582
if (commandDescriptionService instanceof CommandDescriptionService service) {
583
- CommandDescription commandDescription = service.getCommandDescription(this.name, locale);
584
- if (commandDescription != null) {
585
- return commandDescription;
586
- }
+ return service.getCommandDescription(this.name, locale);
587
}
588
589
return null;
0 commit comments