[mqtt.homeassistant] Fix build (#18014)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2025-01-01 23:16:14 +01:00 committed by GitHub
parent 6978b9978b
commit 1a4cebd281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ public abstract class AbstractComponent<C extends AbstractChannelConfiguration>
protected ComponentChannel.Builder buildChannel(String channelID, ComponentChannelType channelType,
Value valueState, String label, ChannelStateUpdateListener channelStateUpdateListener) {
if (groupId == null && newStyleChannels) {
if (groupId == null) {
channelID = componentId;
}
return new ComponentChannel.Builder(this, channelID, channelType.getChannelTypeUID(), valueState, label,

View File

@ -452,10 +452,10 @@ public class ClimateTests extends AbstractComponentTests {
assertChannel(component, Climate.ACTION_CH_ID, "living-room-tion-3s/climate/living-room-tion-3s/action/state",
"", "living-room-tion-3s", TextValue.class);
assertChannel(component, Climate.CURRENT_TEMPERATURE_CH_ID_DEPRECATED,
assertChannel(component, Climate.CURRENT_TEMPERATURE_CH_ID,
"living-room-tion-3s/climate/living-room-tion-3s/current_temperature/state", "", "living-room-tion-3s",
NumberValue.class);
assertChannel(component, Climate.FAN_MODE_CH_ID_DEPRECATED,
assertChannel(component, Climate.FAN_MODE_CH_ID,
"living-room-tion-3s/climate/living-room-tion-3s/fan_mode/state",
"living-room-tion-3s/climate/living-room-tion-3s/fan_mode/command", "living-room-tion-3s",
TextValue.class);