- Platform information:
- Hardware: RPi 3B
- OS: Raspian stretch
- openHAB version: 2.5.1-2
VSCode v1.51.1 + openHab v0.7.0
When using VSCode, the linter seems to signal a problem with constructs like:
switchDimmerDevice.sendCommand(new PercentType(10))
whereas
switchDimmerDevice.sendCommand(ON)
will not be marked as problematic.
I can not see that the new PercentType(n) should be problematic in any way? At least the rules using it are functioning as intended.
The message in VSCode is:
Ambiguous feature call.
The extension methods![Skärmbild från 2020-11-29 18-45-36|690x183](upload://ieusPGwzUpcAbRo5AuTmlL4iw4J.png)
sendCommand(Item, Command) in BusEvent and
sendCommand(Item, Number) in BusEvent
both match.(org.eclipse.xtext.xbase.validation.IssueCodes.ambiguous_feature_call)
Any bright ideas?