From 3346b29044740090d4ecee0056e456e90888c218 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 26 Oct 2021 21:06:49 +0300 Subject: battery status: remove percentage --- inverter-bot | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inverter-bot b/inverter-bot index e17e8e1..f41efbe 100755 --- a/inverter-bot +++ b/inverter-bot @@ -172,8 +172,7 @@ def msg_status(update: Update, context: CallbackContext) -> None: gs['battery_discharging_current']['value'], gs['battery_discharging_current']['unit']) html = 'Battery: %s %s' % (gs['battery_voltage']['value'], gs['battery_voltage']['unit']) - html += ' (%s%s, ' % (gs['battery_capacity']['value'], gs['battery_capacity']['unit']) - html += '%s%s)' % (power_direction, charging_rate) + html += ' (%s%s)' % (power_direction, charging_rate) html += '\nLoad: %s %s' % (gs['ac_output_active_power']['value'], gs['ac_output_active_power']['unit']) html += ' (%s%%)' % (gs['output_load_percent']['value']) -- cgit v1.2.3