kokuwaio / esh-constants-maven-plugin

A Maven plugin that generates a Java constants class from the content of the ESH-INF folder. Very useful for e.g. OpenHAB binding development.
Apache License 2.0
4 stars 2 forks source link

Drop ChannelUIDs from contants class #10

Closed dmfs closed 2 years ago

dmfs commented 2 years ago

The ChannelUIDs are not constants, they are different for each Thing. In fact, the generated code did not even compile because there is no constructor in ChannelUID that takes a ThingTypeUID and a String.

The only reason no one has noticed that before is because, due to a bug, they don't get generated when the channels are in groups, so it has never been used. That's another good reason to remove them.