Skip to content

Commit

Permalink
Merge 376b193 into c5c912f
Browse files Browse the repository at this point in the history
  • Loading branch information
ghys authored Dec 15, 2021
2 parents c5c912f + 376b193 commit 78c237e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ export default {
getCompatibleItemTypes () {
let compatibleItemTypes = []
if (this.channel.itemType) {
this.channel.itemType.split(':', 1)
compatibleItemTypes.push(this.channel.itemType)
if (this.channel.itemType.indexOf('Number:') === 0) { compatibleItemTypes.push('Number') }
if (this.channel.itemType === 'Color') { compatibleItemTypes.push('Switch', 'Dimmer') }
if (this.channel.itemType === 'Dimmer') { compatibleItemTypes.push('Switch') }
}
Expand Down

0 comments on commit 78c237e

Please sign in to comment.