summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-16 17:09:15 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-16 17:09:15 +0300
commit41537fb74a2d63e124dfc3899b60cddd6198d422 (patch)
tree5705e1a9524d13214aded9b794419af566d4a584
parent83464d3ce891eabc51b50d2375760044c2f641eb (diff)
minor fix (fix missing space between value and unit)
-rwxr-xr-xinverter-bot2
1 files changed, 1 insertions, 1 deletions
diff --git a/inverter-bot b/inverter-bot
index a101ed5..f1e2b90 100755
--- a/inverter-bot
+++ b/inverter-bot
@@ -112,7 +112,7 @@ def msg_status(update: Update, context: CallbackContext) -> None:
html += ' (%s%%)' % (gs['output_load_percent']['value'])
if gs['pv1_input_power']['value'] > 0:
- html += '\n<b>Input power:</b> %s%s' % (gs['pv1_input_power']['value'], gs['pv1_input_power']['unit'])
+ html += '\n<b>Input power:</b> %s %s' % (gs['pv1_input_power']['value'], gs['pv1_input_power']['unit'])
if gs['grid_voltage']['value'] > 0 or gs['grid_freq']['value'] > 0:
html += '\n<b>Generator:</b> %s %s' % (gs['grid_voltage']['unit'], gs['grid_voltage']['value'])