Skip to content

Commit

Permalink
[freeboxos] Fix command handling for DECT thing type (openhab#17274)
Browse files Browse the repository at this point in the history
Related to comment in openhab#17262

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
  • Loading branch information
lolodomo authored and pgfeller committed Sep 29, 2024
1 parent 76a7d84 commit 21a4b90
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import org.openhab.binding.freeboxos.internal.api.FreeboxException;
import org.openhab.binding.freeboxos.internal.api.Response;

import com.google.gson.annotations.SerializedName;

/**
* The {@link PhoneManager} is the Java class used to handle api requests related to phone and calls
*
Expand All @@ -38,6 +40,7 @@ protected class StatusResponse extends Response<Status> {
}

private enum NetworkStatus {
@SerializedName("working")
WORKING,
UNKNOWN
}
Expand All @@ -47,7 +50,9 @@ public static record Config(NetworkStatus network, boolean dectEcoMode, String d
}

public enum Type {
@SerializedName("fxs")
FXS,
@SerializedName("dect")
DECT,
UNKNOWN
}
Expand Down

0 comments on commit 21a4b90

Please sign in to comment.