Skip to content

Commit

Permalink
fix errors introduced by last commit
Browse files Browse the repository at this point in the history
the ternary accidentally got swapped

Signed-off-by: Cody Cutrer <cody@cutrer.us>
  • Loading branch information
ccutrer committed Jul 26, 2024
1 parent 9c1f7f0 commit c835743
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,8 @@ public AbstractComponent(ComponentFactory.ComponentConfiguration componentConfig
if (name != null && !name.isEmpty()) {
groupId = this.haID.getGroupId(channelConfiguration.getUniqueId(), newStyleChannels);

this.channelGroupUID = this.singleChannelComponent
? new ChannelGroupUID(componentConfiguration.getThingUID(), groupId)
: null;
this.channelGroupUID = this.singleChannelComponent ? null
: new ChannelGroupUID(componentConfiguration.getThingUID(), groupId);
} else {
this.groupId = this.singleChannelComponent ? haID.component : "";
this.channelGroupUID = null;
Expand Down

0 comments on commit c835743

Please sign in to comment.