mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[somfytahoma] fixed detection of roller shutters (#8557)
* [somfytahoma] fixed detection of roller shutters * [somfytahoma] got rid of compile warning Signed-off-by: Ondrej Pecta <opecta@gmail.com>
This commit is contained in:
parent
f156a80d2f
commit
cafa8fdcff
@ -343,11 +343,11 @@ public class SomfyTahomaItemDiscoveryService extends AbstractDiscoveryService
|
||||
}
|
||||
|
||||
private boolean isSilentRollerShutter(SomfyTahomaDevice device) {
|
||||
return hasCommmand(device, COMMAND_SET_CLOSURESPEED);
|
||||
return "PositionableRollerShutterWithLowSpeedManagement".equals(device.getWidget());
|
||||
}
|
||||
|
||||
private boolean isUnoRollerShutter(SomfyTahomaDevice device) {
|
||||
return hasState(device, TARGET_CLOSURE_STATE);
|
||||
return "PositionableRollerShutterUno".equals(device.getWidget());
|
||||
}
|
||||
|
||||
private boolean isOnOffHeatingSystem(SomfyTahomaDevice device) {
|
||||
|
@ -96,7 +96,8 @@ public abstract class SomfyTahomaBaseThingHandler extends BaseThingHandler {
|
||||
}
|
||||
|
||||
protected @Nullable SomfyTahomaBridgeHandler getBridgeHandler() {
|
||||
return this.getBridge() != null ? (SomfyTahomaBridgeHandler) this.getBridge().getHandler() : null;
|
||||
Bridge localBridge = this.getBridge();
|
||||
return localBridge != null ? (SomfyTahomaBridgeHandler) localBridge.getHandler() : null;
|
||||
}
|
||||
|
||||
private String getURL() {
|
||||
|
Loading…
Reference in New Issue
Block a user