use of org.eclipse.smarthome.binding.lirc.handler.LIRCRemoteHandler in project smarthome by eclipse.
the class LIRCHandlerFactory method createHandler.
@Override
protected ThingHandler createHandler(Thing thing) {
ThingTypeUID thingTypeUID = thing.getThingTypeUID();
if (LIRCBindingConstants.SUPPORTED_BRIDGE_TYPES.contains(thingTypeUID)) {
LIRCBridgeHandler handler = new LIRCBridgeHandler((Bridge) thing);
registerDeviceDiscoveryService(handler);
return handler;
} else if (thingTypeUID.equals(THING_TYPE_REMOTE)) {
return new LIRCRemoteHandler(thing);
}
return null;
}
Aggregations