[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) {
|
private boolean isSilentRollerShutter(SomfyTahomaDevice device) {
|
||||||
return hasCommmand(device, COMMAND_SET_CLOSURESPEED);
|
return "PositionableRollerShutterWithLowSpeedManagement".equals(device.getWidget());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isUnoRollerShutter(SomfyTahomaDevice device) {
|
private boolean isUnoRollerShutter(SomfyTahomaDevice device) {
|
||||||
return hasState(device, TARGET_CLOSURE_STATE);
|
return "PositionableRollerShutterUno".equals(device.getWidget());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isOnOffHeatingSystem(SomfyTahomaDevice device) {
|
private boolean isOnOffHeatingSystem(SomfyTahomaDevice device) {
|
||||||
|
|
|
@ -96,7 +96,8 @@ public abstract class SomfyTahomaBaseThingHandler extends BaseThingHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected @Nullable SomfyTahomaBridgeHandler getBridgeHandler() {
|
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() {
|
private String getURL() {
|
||||||
|
|
Loading…
Reference in New Issue