When I setup my DiscoveryService as described here, startBackgroundDiscovery() method is called before the Bridge initialization has been completed. Is this expected behavior? Of course, as I have a bridge-based discovery of things, I need to have the bridge initialized first before I start discovery. Otherwise, background discovery obviously can’t work.
In case somebody wants to check, this is my code where I believe to observe this behavior: openhab-addons/FlicSimpleclientDiscoveryServiceImpl.java at flicbutton-thinghandlerservice · pfink/openhab-addons · GitHub (I get a NPE which should not happen if the bridge would be already initialized).