From 04254ce1477a7b53604ebf4ec9c4ff894d2061cd Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 7 Dec 2024 19:48:32 +0100 Subject: [PATCH] Remove unneeded code (#17861) Signed-off-by: Jacob Laursen --- .../internal/factory/EnergiDataServiceHandlerFactory.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/factory/EnergiDataServiceHandlerFactory.java b/bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/factory/EnergiDataServiceHandlerFactory.java index 653988571f5..d1eead5bb74 100644 --- a/bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/factory/EnergiDataServiceHandlerFactory.java +++ b/bundles/org.openhab.binding.energidataservice/src/main/java/org/openhab/binding/energidataservice/internal/factory/EnergiDataServiceHandlerFactory.java @@ -30,7 +30,6 @@ import org.openhab.core.thing.ThingTypeUID; import org.openhab.core.thing.binding.BaseThingHandlerFactory; import org.openhab.core.thing.binding.ThingHandler; import org.openhab.core.thing.binding.ThingHandlerFactory; -import org.osgi.service.component.ComponentContext; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; @@ -57,8 +56,7 @@ public class EnergiDataServiceHandlerFactory extends BaseThingHandlerFactory { public EnergiDataServiceHandlerFactory(final @Reference HttpClientFactory httpClientFactory, final @Reference TimeZoneProvider timeZoneProvider, final @Reference ElectricityPriceProvider electricityPriceProvider, - final @Reference Co2EmissionProvider co2EmissionProvider, ComponentContext componentContext) { - super.activate(componentContext); + final @Reference Co2EmissionProvider co2EmissionProvider) { this.httpClient = httpClientFactory.getCommonHttpClient(); this.timeZoneProvider = timeZoneProvider; this.electricityPriceProvider = electricityPriceProvider;