enable background discovery (#16328)

Signed-off-by: Olivier Marceau <hollysaiqs@marceau.ovh>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Olivier 2024-02-04 11:13:47 +01:00 committed by Ciprian Pascu
parent 8e7881954b
commit 769e3c44c0

View File

@ -72,6 +72,18 @@ public class TeleinfoDiscoveryService extends AbstractThingHandlerDiscoveryServi
return SUPPORTED_THING_TYPES;
}
@Override
protected void startBackgroundDiscovery() {
logger.debug("Start Teleinfo device background discovery");
thingHandler.addListener(this);
}
@Override
protected void stopBackgroundDiscovery() {
logger.debug("Stop Teleinfo device background discovery");
thingHandler.removeListener(this);
}
@Override
protected void startScan() {
logger.debug("Teleinfo discovery: Start {}", thingHandler.getThing().getUID());