[mqtt.homeassistant] Remove newStyleChannels temporary back-compat (#17908)

This includes removing deprecated channel IDs controlled by the same flag.

Signed-off-by: Cody Cutrer <cody@cutrer.us>
This commit is contained in:
Cody Cutrer
2024-12-31 21:08:28 +01:00
committed by GitHub
parent d4cbc5f839
commit 36802db90e
49 changed files with 245 additions and 523 deletions
@@ -85,7 +85,7 @@ public class DiscoverComponentsTest extends JavaOSGiTest {
UnitProvider unitProvider = mock(UnitProvider.class);
DiscoverComponents discover = spy(new DiscoverComponents(ThingChannelConstants.TEST_HOME_ASSISTANT_THING,
scheduler, channelStateUpdateListener, availabilityTracker, gson, jinjava, unitProvider, true));
scheduler, channelStateUpdateListener, availabilityTracker, gson, jinjava, unitProvider));
HandlerConfiguration config = new HandlerConfiguration("homeassistant", List.of("switch/object"));
@@ -170,7 +170,7 @@ public class HomeAssistantMQTTImplementationTest extends MqttOSGiTest {
ScheduledExecutorService scheduler = new ScheduledThreadPoolExecutor(4);
DiscoverComponents discover = spy(new DiscoverComponents(ThingChannelConstants.TEST_HOME_ASSISTANT_THING,
scheduler, channelStateUpdateListener, availabilityTracker, gson, jinjava, unitProvider, true));
scheduler, channelStateUpdateListener, availabilityTracker, gson, jinjava, unitProvider));
// The DiscoverComponents object calls ComponentDiscovered callbacks.
// In the following implementation we add the found component to the `haComponents` map