diff --git a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java index d3f36111768ff..7bae092054a17 100644 --- a/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java +++ b/bundles/org.openhab.binding.onkyo/src/main/java/org/openhab/binding/onkyo/internal/discovery/OnkyoUpnpDiscoveryParticipant.java @@ -20,7 +20,6 @@ import java.util.Map; import java.util.Set; -import org.apache.commons.lang3.StringUtils; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; import org.jupnp.model.meta.RemoteDevice; @@ -143,6 +142,6 @@ private ThingTypeUID findThingType(@Nullable String deviceModel) { */ private boolean isSupportedDeviceModel(final @Nullable String deviceModel) { return deviceModel != null && !deviceModel.isBlank() && Arrays.stream(OnkyoModel.values()) - .anyMatch(model -> StringUtils.startsWithIgnoreCase(deviceModel, model.getId())); + .anyMatch(model -> deviceModel.toLowerCase().startsWith(model.getId().toLowerCase())); } }