mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Remove unneeded code (#17861)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
98d257982c
commit
04254ce147
@ -30,7 +30,6 @@ import org.openhab.core.thing.ThingTypeUID;
|
|||||||
import org.openhab.core.thing.binding.BaseThingHandlerFactory;
|
import org.openhab.core.thing.binding.BaseThingHandlerFactory;
|
||||||
import org.openhab.core.thing.binding.ThingHandler;
|
import org.openhab.core.thing.binding.ThingHandler;
|
||||||
import org.openhab.core.thing.binding.ThingHandlerFactory;
|
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.Activate;
|
||||||
import org.osgi.service.component.annotations.Component;
|
import org.osgi.service.component.annotations.Component;
|
||||||
import org.osgi.service.component.annotations.Reference;
|
import org.osgi.service.component.annotations.Reference;
|
||||||
@ -57,8 +56,7 @@ public class EnergiDataServiceHandlerFactory extends BaseThingHandlerFactory {
|
|||||||
public EnergiDataServiceHandlerFactory(final @Reference HttpClientFactory httpClientFactory,
|
public EnergiDataServiceHandlerFactory(final @Reference HttpClientFactory httpClientFactory,
|
||||||
final @Reference TimeZoneProvider timeZoneProvider,
|
final @Reference TimeZoneProvider timeZoneProvider,
|
||||||
final @Reference ElectricityPriceProvider electricityPriceProvider,
|
final @Reference ElectricityPriceProvider electricityPriceProvider,
|
||||||
final @Reference Co2EmissionProvider co2EmissionProvider, ComponentContext componentContext) {
|
final @Reference Co2EmissionProvider co2EmissionProvider) {
|
||||||
super.activate(componentContext);
|
|
||||||
this.httpClient = httpClientFactory.getCommonHttpClient();
|
this.httpClient = httpClientFactory.getCommonHttpClient();
|
||||||
this.timeZoneProvider = timeZoneProvider;
|
this.timeZoneProvider = timeZoneProvider;
|
||||||
this.electricityPriceProvider = electricityPriceProvider;
|
this.electricityPriceProvider = electricityPriceProvider;
|
||||||
|
Loading…
Reference in New Issue
Block a user