2121
2222import org .eclipse .jdt .annotation .NonNullByDefault ;
2323import org .eclipse .jdt .annotation .Nullable ;
24- import org .eclipse .jetty .client .HttpClient ;
2524import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardBackyardHandler ;
2625import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardBowHandler ;
2726import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardBridgeHandler ;
3231import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardPumpHandler ;
3332import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardRelayHandler ;
3433import org .openhab .binding .haywardomnilogiclocal .internal .handler .HaywardVirtualHeaterHandler ;
35- import org .openhab .core .io .net .http .HttpClientFactory ;
3634import org .openhab .core .thing .Bridge ;
3735import org .openhab .core .thing .Thing ;
3836import org .openhab .core .thing .ThingTypeUID ;
@@ -57,18 +55,15 @@ public class HaywardHandlerFactory extends BaseThingHandlerFactory {
5755 private static final Set <ThingTypeUID > SUPPORTED_THING_TYPES_UIDS = Collections .unmodifiableSet (
5856 Stream .concat (BRIDGE_THING_TYPES_UIDS .stream (), THING_TYPES_UIDS .stream ()).collect (Collectors .toSet ()));
5957 private final HaywardDynamicStateDescriptionProvider stateDescriptionProvider ;
60- private final HttpClient httpClient ;
6158
6259 @ Override
6360 public boolean supportsThingType (ThingTypeUID thingTypeUID ) {
6461 return SUPPORTED_THING_TYPES_UIDS .contains (thingTypeUID );
6562 }
6663
6764 @ Activate
68- public HaywardHandlerFactory (final @ Reference HaywardDynamicStateDescriptionProvider stateDescriptionProvider ,
69- @ Reference HttpClientFactory httpClientFactory ) {
65+ public HaywardHandlerFactory (final @ Reference HaywardDynamicStateDescriptionProvider stateDescriptionProvider ) {
7066 this .stateDescriptionProvider = stateDescriptionProvider ;
71- this .httpClient = httpClientFactory .getCommonHttpClient ();
7267 }
7368
7469 /**
@@ -79,7 +74,7 @@ public HaywardHandlerFactory(final @Reference HaywardDynamicStateDescriptionProv
7974 ThingTypeUID thingTypeUID = thing .getThingTypeUID ();
8075
8176 if (thingTypeUID .equals (HaywardBindingConstants .THING_TYPE_BRIDGE )) {
82- return new HaywardBridgeHandler (stateDescriptionProvider , (Bridge ) thing , httpClient );
77+ return new HaywardBridgeHandler (stateDescriptionProvider , (Bridge ) thing );
8378 }
8479 if (thingTypeUID .equals (HaywardBindingConstants .THING_TYPE_BACKYARD )) {
8580 return new HaywardBackyardHandler (thing );
0 commit comments