mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
[mqtt.homeassistant] Fix build (#18014)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
parent
6978b9978b
commit
1a4cebd281
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user