mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
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:
parent
8e7881954b
commit
769e3c44c0
@ -72,6 +72,18 @@ public class TeleinfoDiscoveryService extends AbstractThingHandlerDiscoveryServi
|
|||||||
return SUPPORTED_THING_TYPES;
|
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
|
@Override
|
||||||
protected void startScan() {
|
protected void startScan() {
|
||||||
logger.debug("Teleinfo discovery: Start {}", thingHandler.getThing().getUID());
|
logger.debug("Teleinfo discovery: Start {}", thingHandler.getThing().getUID());
|
||||||
|
Loading…
Reference in New Issue
Block a user