Fixed string formatting for Android
This commit is contained in:
1 parent
0bcb4b8573
commit
af7697f223
1 file changed
+1
-1
@@ -637,7 +637,7 @@ class WeaveDevice():
|
||||
else:
|
||||
ts = RNS.prettytime(frame.timestamp)
|
||||
if frame.event == Evt.ET_MSG:
|
||||
if len(frame.data): data_string = f"{frame.data.decode("utf-8")}"
|
||||
if len(frame.data): data_string = frame.data.decode("utf-8")
|
||||
else: data_string = ""
|
||||
rendered = f"[{ts}] [{Evt.level(frame.level)}]: {data_string}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user