diff --git a/i3pystatus/wireguard.py b/i3pystatus/wireguard.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/wireguard.py
+++ b/i3pystatus/wireguard.py
@@ -76,6 +76,6 @@ class Wireguard(IntervalModule):
 
         self.data = locals()
         self.output = {
-            "full_text": self.format.format(**locals()),
+            "full_text": self.format.format(**self.data),
             'color': color,
         }
Use self.data instead of locals