2 * Copyright (c) 2010-2023 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.vizio.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.core.events.EventPublisher;
17 import org.openhab.core.thing.binding.BaseDynamicStateDescriptionProvider;
18 import org.openhab.core.thing.i18n.ChannelTypeI18nLocalizationService;
19 import org.openhab.core.thing.link.ItemChannelLinkRegistry;
20 import org.openhab.core.thing.type.DynamicStateDescriptionProvider;
21 import org.osgi.service.component.annotations.Activate;
22 import org.osgi.service.component.annotations.Component;
23 import org.osgi.service.component.annotations.Reference;
26 * The {@link VizioStateDescriptionOptionProvider} is a Dynamic provider of state options while leaving other state
27 * description fields as original.
29 * @author Michael Lobstein - Initial contribution
31 @Component(service = { DynamicStateDescriptionProvider.class, VizioStateDescriptionOptionProvider.class })
33 public class VizioStateDescriptionOptionProvider extends BaseDynamicStateDescriptionProvider {
36 public VizioStateDescriptionOptionProvider(final @Reference EventPublisher eventPublisher,
37 final @Reference ItemChannelLinkRegistry itemChannelLinkRegistry,
38 final @Reference ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService) {
39 this.eventPublisher = eventPublisher;
40 this.itemChannelLinkRegistry = itemChannelLinkRegistry;
41 this.channelTypeI18nLocalizationService = channelTypeI18nLocalizationService;