Commit 700e2da
committed
anavi-miracle-controller-sw: Config HA discovery
Do not send MQTT discovery message to Home Assistant if the length
of of the LED strip is zero. This way you can display one of the
LEDs. For example: if LED1 length is set to 10 and LED2 lenght is
0 than only LED1 will be discovered by Home Assistant.
Signed-off-by: Leon Anavi <leon@anavi.org>1 parent a5ec67e commit 700e2da
File tree
1 file changed
+9
-2
lines changed1 file changed
+9
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1280 | 1287 | | |
1281 | 1288 | | |
1282 | 1289 | | |
| |||
0 commit comments