Skip to content

Commit

Permalink
Use correct profile builder (openhab#831)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <[email protected]>
  • Loading branch information
cweitkamp authored and maggu2810 committed May 24, 2019
1 parent d35665c commit 0d736a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ProfileType createLocalizedProfileType(Bundle bundle, ProfileType profile
String label = profileI18nUtil.getProfileLabel(bundle, profileTypeUID, defaultLabel, locale);

if (profileType instanceof StateProfileType) {
return ProfileTypeBuilder.newTrigger(profileTypeUID, label != null ? label : defaultLabel)
return ProfileTypeBuilder.newState(profileTypeUID, label != null ? label : defaultLabel)
.withSupportedItemTypes(profileType.getSupportedItemTypes())
.withSupportedItemTypesOfChannel(((StateProfileType) profileType).getSupportedItemTypesOfChannel())
.build();
Expand Down

0 comments on commit 0d736a7

Please sign in to comment.