Skip to content

Commit

Permalink
Strip build information from user agent version
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur committed Jun 1, 2023
1 parent 4c278be commit 9da8b0c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.openhab.binding.surepetcare.internal.dto.SurePetcarePetStatus;
import org.openhab.binding.surepetcare.internal.dto.SurePetcareTag;
import org.openhab.binding.surepetcare.internal.dto.SurePetcareTopology;
import org.osgi.framework.FrameworkUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -83,7 +82,7 @@ public class SurePetcareAPIHelper {
private SurePetcareTopology topologyCache = new SurePetcareTopology();

public SurePetcareAPIHelper() {
userAgent = "openHAB/" + FrameworkUtil.getBundle(this.getClass()).getVersion().toString();
userAgent = "openHAB/" + org.openhab.core.OpenHAB.getVersion();
}

/**
Expand Down

0 comments on commit 9da8b0c

Please sign in to comment.