battery status: remove percentage
This commit is contained in:
parent
4190f15676
commit
3346b29044
@ -172,8 +172,7 @@ def msg_status(update: Update, context: CallbackContext) -> None:
|
|||||||
gs['battery_discharging_current']['value'], gs['battery_discharging_current']['unit'])
|
gs['battery_discharging_current']['value'], gs['battery_discharging_current']['unit'])
|
||||||
|
|
||||||
html = '<b>Battery:</b> %s %s' % (gs['battery_voltage']['value'], gs['battery_voltage']['unit'])
|
html = '<b>Battery:</b> %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 += '\n<b>Load:</b> %s %s' % (gs['ac_output_active_power']['value'], gs['ac_output_active_power']['unit'])
|
html += '\n<b>Load:</b> %s %s' % (gs['ac_output_active_power']['value'], gs['ac_output_active_power']['unit'])
|
||||||
html += ' (%s%%)' % (gs['output_load_percent']['value'])
|
html += ' (%s%%)' % (gs['output_load_percent']['value'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user