]> git.basschouten.com Git - openhab-addons.git/blob
25adb893f52d74c1bc5312a09dc2fdecdd32d1d8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.oppo.internal.communication;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.oppo.internal.OppoException;
17 import org.slf4j.Logger;
18 import org.slf4j.LoggerFactory;
19
20 /**
21  * Class to create a default MonopriceAudioConnector before initialization is complete.
22  *
23  * @author Laurent Garnier - Initial contribution
24  * @author Michael Lobstein - Adapted for the Oppo binding
25  */
26 @NonNullByDefault
27 public class OppoDefaultConnector extends OppoConnector {
28     private final Logger logger = LoggerFactory.getLogger(OppoDefaultConnector.class);
29
30     @Override
31     public void open() throws OppoException {
32         logger.warn("Oppo binding incorrectly configured. Please configure for Serial or IP connection");
33         setConnected(false);
34     }
35
36     @Override
37     public void close() {
38         setConnected(false);
39     }
40 }