Rename handler to fix case and make consistent with corresponding channel selector (#14095)

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen
2022-12-29 20:07:31 +01:00
committed by GitHub
parent 026ac92023
commit 68ecfa724e
2 changed files with 6 additions and 6 deletions

View File

@@ -26,7 +26,7 @@ import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.jetty.client.HttpClient; import org.eclipse.jetty.client.HttpClient;
import org.openhab.binding.miele.internal.discovery.MieleApplianceDiscoveryService; import org.openhab.binding.miele.internal.discovery.MieleApplianceDiscoveryService;
import org.openhab.binding.miele.internal.handler.CoffeeMachineHandler; import org.openhab.binding.miele.internal.handler.CoffeeMachineHandler;
import org.openhab.binding.miele.internal.handler.DishWasherHandler; import org.openhab.binding.miele.internal.handler.DishwasherHandler;
import org.openhab.binding.miele.internal.handler.FridgeFreezerHandler; import org.openhab.binding.miele.internal.handler.FridgeFreezerHandler;
import org.openhab.binding.miele.internal.handler.FridgeHandler; import org.openhab.binding.miele.internal.handler.FridgeHandler;
import org.openhab.binding.miele.internal.handler.HobHandler; import org.openhab.binding.miele.internal.handler.HobHandler;
@@ -137,7 +137,7 @@ public class MieleHandlerFactory extends BaseThingHandlerFactory {
return new TumbleDryerHandler(thing, i18nProvider, localeProvider, timeZoneProvider); return new TumbleDryerHandler(thing, i18nProvider, localeProvider, timeZoneProvider);
} }
if (thing.getThingTypeUID().equals(THING_TYPE_DISHWASHER)) { if (thing.getThingTypeUID().equals(THING_TYPE_DISHWASHER)) {
return new DishWasherHandler(thing, i18nProvider, localeProvider, timeZoneProvider); return new DishwasherHandler(thing, i18nProvider, localeProvider, timeZoneProvider);
} }
if (thing.getThingTypeUID().equals(THING_TYPE_COFFEEMACHINE)) { if (thing.getThingTypeUID().equals(THING_TYPE_COFFEEMACHINE)) {
return new CoffeeMachineHandler(thing, i18nProvider, localeProvider, timeZoneProvider); return new CoffeeMachineHandler(thing, i18nProvider, localeProvider, timeZoneProvider);

View File

@@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
/** /**
* The {@link DishWasherHandler} is responsible for handling commands, * The {@link DishwasherHandler} is responsible for handling commands,
* which are sent to one of the channels * which are sent to one of the channels
* *
* @author Karel Goderis - Initial contribution * @author Karel Goderis - Initial contribution
@@ -46,16 +46,16 @@ import com.google.gson.JsonElement;
* @author Jacob Laursen - Fixed multicast and protocol support (ZigBee/LAN), added power/water consumption channels * @author Jacob Laursen - Fixed multicast and protocol support (ZigBee/LAN), added power/water consumption channels
*/ */
@NonNullByDefault @NonNullByDefault
public class DishWasherHandler extends MieleApplianceHandler<DishwasherChannelSelector> public class DishwasherHandler extends MieleApplianceHandler<DishwasherChannelSelector>
implements ExtendedDeviceStateListener { implements ExtendedDeviceStateListener {
private static final int POWER_CONSUMPTION_BYTE_POSITION = 16; private static final int POWER_CONSUMPTION_BYTE_POSITION = 16;
private static final int WATER_CONSUMPTION_BYTE_POSITION = 18; private static final int WATER_CONSUMPTION_BYTE_POSITION = 18;
private static final int EXTENDED_STATE_MIN_SIZE_BYTES = 19; private static final int EXTENDED_STATE_MIN_SIZE_BYTES = 19;
private final Logger logger = LoggerFactory.getLogger(DishWasherHandler.class); private final Logger logger = LoggerFactory.getLogger(DishwasherHandler.class);
public DishWasherHandler(Thing thing, TranslationProvider i18nProvider, LocaleProvider localeProvider, public DishwasherHandler(Thing thing, TranslationProvider i18nProvider, LocaleProvider localeProvider,
TimeZoneProvider timeZoneProvider) { TimeZoneProvider timeZoneProvider) {
super(thing, i18nProvider, localeProvider, timeZoneProvider, DishwasherChannelSelector.class, super(thing, i18nProvider, localeProvider, timeZoneProvider, DishwasherChannelSelector.class,
MIELE_DEVICE_CLASS_DISHWASHER); MIELE_DEVICE_CLASS_DISHWASHER);