Remove immediate = true from all Components (#8615)
We recommend not to use this on add-ons. Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
This commit is contained in:
committed by
GitHub
parent
f06068a189
commit
003c3af985
@@ -56,7 +56,7 @@ import com.google.gson.Gson;
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = { ThingHandlerFactory.class,
|
||||
EventHandler.class }, immediate = true, configurationPid = "binding.smarthings", property = "event.topics=org/openhab/binding/smartthings/state")
|
||||
EventHandler.class }, configurationPid = "binding.smarthings", property = "event.topics=org/openhab/binding/smartthings/state")
|
||||
public class SmartthingsHandlerFactory extends BaseThingHandlerFactory implements ThingHandlerFactory, EventHandler {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(SmartthingsHandlerFactory.class);
|
||||
|
||||
@@ -50,7 +50,7 @@ import com.google.gson.Gson;
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@SuppressWarnings("serial")
|
||||
@Component(immediate = true, service = HttpServlet.class)
|
||||
@Component(service = HttpServlet.class)
|
||||
public class SmartthingsServlet extends HttpServlet {
|
||||
private static final String PATH = "/smartthings";
|
||||
private final Logger logger = LoggerFactory.getLogger(SmartthingsServlet.class);
|
||||
|
||||
@@ -49,7 +49,7 @@ import com.google.gson.Gson;
|
||||
*/
|
||||
@NonNullByDefault
|
||||
@Component(service = { DiscoveryService.class,
|
||||
EventHandler.class }, immediate = true, configurationPid = "discovery.smartthings", property = "event.topics=org/openhab/binding/smartthings/discovery")
|
||||
EventHandler.class }, configurationPid = "discovery.smartthings", property = "event.topics=org/openhab/binding/smartthings/discovery")
|
||||
public class SmartthingsDiscoveryService extends AbstractDiscoveryService implements EventHandler {
|
||||
private static final int DISCOVERY_TIMEOUT_SEC = 30;
|
||||
private static final int INITIAL_DELAY_SEC = 10; // Delay 10 sec to give time for bridge and things to be created
|
||||
|
||||
Reference in New Issue
Block a user