Let's try that again.

This commit is contained in:
Nick Brassel
2023-04-03 07:44:30 +10:00
parent 32129ee5a2
commit ea62fa1cec
+1
View File
@@ -141,6 +141,7 @@ class MonitorDevice(object):
identifier = (int2hex(message['vendor_id']), int2hex(message['product_id'])) if self.numeric else (message['manufacturer_string'], message['product_string'])
message['identifier'] = ':'.join(identifier)
message['ts'] = '{style_dim}{fg_green}%s{style_reset_all} ' % (strftime(cli.config.general.datetime_fmt),) if cli.args.timestamp else ''
message['text'] = message['text'].replace('%', '%%')
cli.echo('%(ts)s%(color)s%(identifier)s:%(index)d{style_reset_all}: %(text)s', **message)
except self.hid.HIDException: