2 * Copyright (c) 2010-2024 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.lutron.internal.discovery.project;
15 import java.util.Collections;
16 import java.util.List;
19 * An input device in a Lutron system such as a keypad or occupancy sensor.
21 * @author Allan Tong - Initial contribution
23 public class Device implements DeviceNode {
25 private Integer integrationId;
27 private List<Component> components;
29 public String getName() {
33 public Integer getIntegrationId() {
37 public String getType() {
41 public DeviceType getDeviceType() {
43 return DeviceType.valueOf(this.type);
44 } catch (Exception e) {
49 public List<Component> getComponents() {
50 return components != null ? components : Collections.<Component> emptyList();