mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 23:22:02 +01:00
Signed-off-by: AndrewFG <software@whitebear.ch> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
c6deab87e5
commit
7c903581a9
@ -21,6 +21,7 @@ import java.io.InputStream;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.time.ZoneId;
|
import java.time.ZoneId;
|
||||||
import java.time.ZonedDateTime;
|
import java.time.ZonedDateTime;
|
||||||
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
@ -47,6 +48,7 @@ import org.openhab.binding.deconz.internal.types.ResourceTypeDeserializer;
|
|||||||
import org.openhab.binding.deconz.internal.types.ThermostatMode;
|
import org.openhab.binding.deconz.internal.types.ThermostatMode;
|
||||||
import org.openhab.binding.deconz.internal.types.ThermostatModeGsonTypeAdapter;
|
import org.openhab.binding.deconz.internal.types.ThermostatModeGsonTypeAdapter;
|
||||||
import org.openhab.core.config.discovery.DiscoveryListener;
|
import org.openhab.core.config.discovery.DiscoveryListener;
|
||||||
|
import org.openhab.core.config.discovery.DiscoveryService;
|
||||||
import org.openhab.core.library.types.DateTimeType;
|
import org.openhab.core.library.types.DateTimeType;
|
||||||
import org.openhab.core.thing.Bridge;
|
import org.openhab.core.thing.Bridge;
|
||||||
import org.openhab.core.thing.ThingUID;
|
import org.openhab.core.thing.ThingUID;
|
||||||
@ -92,6 +94,7 @@ public class DeconzTest {
|
|||||||
Mockito.doAnswer(answer -> CompletableFuture.completedFuture(Optional.of(bridgeFullState))).when(bridgeHandler)
|
Mockito.doAnswer(answer -> CompletableFuture.completedFuture(Optional.of(bridgeFullState))).when(bridgeHandler)
|
||||||
.getBridgeFullState();
|
.getBridgeFullState();
|
||||||
ThingDiscoveryService discoveryService = new ThingDiscoveryService();
|
ThingDiscoveryService discoveryService = new ThingDiscoveryService();
|
||||||
|
discoveryService.modified(Map.of(DiscoveryService.CONFIG_PROPERTY_BACKGROUND_DISCOVERY, false));
|
||||||
discoveryService.setThingHandler(bridgeHandler);
|
discoveryService.setThingHandler(bridgeHandler);
|
||||||
discoveryService.initialize();
|
discoveryService.initialize();
|
||||||
discoveryService.addDiscoveryListener(discoveryListener);
|
discoveryService.addDiscoveryListener(discoveryListener);
|
||||||
|
Loading…
Reference in New Issue
Block a user