[miio] update readme maker (#9797)
Update the readme maker to not suggest invalid item names (containing hyphens) Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
parent
eea5750b73
commit
a46d9cb306
File diff suppressed because it is too large
Load Diff
@ -200,8 +200,8 @@ public class ReadmeHelper {
|
||||
sw.write("Group " + gr + " \"" + device.getDescription() + "\" <status>\n");
|
||||
|
||||
for (MiIoBasicChannel ch : dev.getDevice().getChannels()) {
|
||||
sw.write(ch.getType() + " " + ch.getChannel() + " \"" + ch.getFriendlyName() + "\" (" + gr
|
||||
+ ") {channel=\"miio:basic:" + id + ":" + ch.getChannel() + "\"}\n");
|
||||
sw.write(ch.getType() + " " + ch.getChannel().replace("-", "_") + " \"" + ch.getFriendlyName()
|
||||
+ "\" (" + gr + ") {channel=\"miio:basic:" + id + ":" + ch.getChannel() + "\"}\n");
|
||||
}
|
||||
sw.write("```\n\n");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user