[wemo] Fix stability issues (#14163)

* Stabilize UPnP subscription handling
* Remove unused UpnpService
* Fix integration test

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen
2023-01-28 09:35:30 +01:00
committed by GitHub
parent 0312e687ba
commit 0e65903216
15 changed files with 59 additions and 130 deletions

View File

@@ -111,7 +111,7 @@ public class WemoHandlerOSGiTest extends GenericWemoOSGiTest {
Thing thing = createThing(THING_TYPE_UID, DEFAULT_TEST_CHANNEL, DEFAULT_TEST_CHANNEL_TYPE);
waitForAssert(() -> {
assertThat(thing.getStatus(), is(ThingStatus.OFFLINE));
assertThat(thing.getStatus(), is(ThingStatus.UNKNOWN));
});
// The device is registered as UPnP Device after the initialization, this will ensure that the polling job will

View File

@@ -143,7 +143,7 @@ public class WemoInsightHandlerTest {
String channelToWatch;
public MockWemoInsightHandler(Thing thing, String channelToWatch) {
super(thing, null, null, new WemoHttpCall());
super(thing, null, new WemoHttpCall());
this.channelToWatch = channelToWatch;
}