2 * Copyright (c) 2010-2021 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.netatmo.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.thing.binding.BaseDynamicStateDescriptionProvider;
17 import org.openhab.core.thing.i18n.ChannelTypeI18nLocalizationService;
18 import org.openhab.core.thing.type.DynamicStateDescriptionProvider;
19 import org.osgi.service.component.annotations.Component;
20 import org.osgi.service.component.annotations.Reference;
23 * Dynamic provider of state options for NATherm1Handler.
25 * @author Gregory Moyer - Initial contribution
26 * @author Gaƫl L'hopital - Ported as-is in Netatmo binding
28 @Component(service = { DynamicStateDescriptionProvider.class, NATherm1StateDescriptionProvider.class })
30 public class NATherm1StateDescriptionProvider extends BaseDynamicStateDescriptionProvider {
33 protected void setChannelTypeI18nLocalizationService(
34 final ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
35 this.channelTypeI18nLocalizationService = channelTypeI18nLocalizationService;
38 protected void unsetChannelTypeI18nLocalizationService(
39 final ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
40 this.channelTypeI18nLocalizationService = null;