Skip to content

Commit

Permalink
[mqtt.homeassistant] Fix build (openhab#18014)
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <[email protected]>
  • Loading branch information
holgerfriedrich authored Jan 1, 2025
1 parent 6978b99 commit 1a4cebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void resolveConflict() {

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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,10 @@ public void testClimateWithEmptyName() {

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);
Expand Down

0 comments on commit 1a4cebd

Please sign in to comment.