[somfytahoma] fixed action groups execution (#10488)

Fixes #10489

Signed-off-by: Ondrej Pecta <opecta@gmail.com>
This commit is contained in:
Ondrej Pecta 2021-04-08 14:01:31 +02:00 committed by GitHub
parent 223a745946
commit 16614254c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ public class SomfyTahomaActionGroupHandler extends SomfyTahomaBaseThingHandler {
@Override
public void initializeThing(@Nullable ThingStatus bridgeStatus) {
if (bridgeStatus != null) {
url = getURL();
if (bridgeStatus == ThingStatus.ONLINE) {
updateStatus(ThingStatus.ONLINE);
} else {

View File

@ -151,7 +151,7 @@ public abstract class SomfyTahomaBaseThingHandler extends BaseThingHandler {
return localBridge != null ? (SomfyTahomaBridgeHandler) localBridge.getHandler() : null;
}
private String getURL() {
protected String getURL() {
return getThing().getConfiguration().get("url") != null ? getThing().getConfiguration().get("url").toString()
: "";
}