@@ -707,8 +707,9 @@ def setFavorite(self, nodeId: Union[int, str]):
707707 onResponse = self .onAckNak
708708 return self ._sendAdmin (p , onResponse = onResponse )
709709
710- def backupPreferences (self , location : Optional [int ] = 0 ):
710+ def backupPreferences (self , location : Optional [admin_pb2 . AdminMessage . BackupLocation . ValueType ] = 0 ):
711711 """Tell the node to backup preferences to flash."""
712+ print (f"Backing up preferences to location { location } " )
712713 self .ensureSessionKey ()
713714
714715 p = admin_pb2 .AdminMessage ()
@@ -720,7 +721,7 @@ def backupPreferences(self, location: Optional[int] = 0):
720721 onResponse = self .onAckNak
721722 return self ._sendAdmin (p , onResponse = onResponse )
722723
723- def restorePreferences (self , location : Optional [int ] = 0 ):
724+ def restorePreferences (self , location : Optional [admin_pb2 . AdminMessage . BackupLocation . ValueType ] = 0 ):
724725 """Tell the node to restore preferences from backup."""
725726 self .ensureSessionKey ()
726727
@@ -733,7 +734,7 @@ def restorePreferences(self, location: Optional[int] = 0):
733734 onResponse = self .onAckNak
734735 return self ._sendAdmin (p , onResponse = onResponse )
735736
736- def removePreferencesBackups (self , location : Optional [int ] = 0 ):
737+ def removePreferencesBackups (self , location : Optional [admin_pb2 . AdminMessage . BackupLocation . ValueType ] = 0 ):
737738 """Tell the node to remove backup preferences from the filesystem."""
738739 self .ensureSessionKey ()
739740
0 commit comments