[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:
Marcel 2021-01-13 20:57:13 +01:00 committed by GitHub
parent eea5750b73
commit a46d9cb306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 258 additions and 258 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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");
}