From fb48fc20b3aa3f5c2739d2745a3fdb0864ae34e1 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Mon, 3 Mar 2025 07:56:03 -0600 Subject: [PATCH] Optionals --- meshtastic/node.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meshtastic/node.py b/meshtastic/node.py index 98fbdcc..c9ce7ec 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -707,7 +707,7 @@ class Node: onResponse = self.onAckNak return self._sendAdmin(p, onResponse=onResponse) - def backupPreferences(self, location: int = 0): + def backupPreferences(self, location: Optional[int] = 0): """Tell the node to backup preferences to flash.""" self.ensureSessionKey() @@ -720,7 +720,7 @@ class Node: onResponse = self.onAckNak return self._sendAdmin(p, onResponse=onResponse) - def restorePreferences(self, location: int = 0): + def restorePreferences(self, location: Optional[int] = 0): """Tell the node to restore preferences from backup.""" self.ensureSessionKey() @@ -733,7 +733,7 @@ class Node: onResponse = self.onAckNak return self._sendAdmin(p, onResponse=onResponse) - def removePreferencesBackups(self, location: int = 0): + def removePreferencesBackups(self, location: Optional[int] = 0): """Tell the node to remove backup preferences from the filesystem.""" self.ensureSessionKey()