@@ -707,7 +707,7 @@ def setFavorite(self, nodeId: Union[int, str]):
707707 onResponse = self .onAckNak
708708 return self ._sendAdmin (p , onResponse = onResponse )
709709
710- def backupPreferences (self , location : int = 0 ):
710+ def backupPreferences (self , location : Optional [ int ] = 0 ):
711711 """Tell the node to backup preferences to flash."""
712712 self .ensureSessionKey ()
713713
@@ -720,7 +720,7 @@ def backupPreferences(self, location: int = 0):
720720 onResponse = self .onAckNak
721721 return self ._sendAdmin (p , onResponse = onResponse )
722722
723- def restorePreferences (self , location : int = 0 ):
723+ def restorePreferences (self , location : Optional [ int ] = 0 ):
724724 """Tell the node to restore preferences from backup."""
725725 self .ensureSessionKey ()
726726
@@ -733,7 +733,7 @@ def restorePreferences(self, location: int = 0):
733733 onResponse = self .onAckNak
734734 return self ._sendAdmin (p , onResponse = onResponse )
735735
736- def removePreferencesBackups (self , location : int = 0 ):
736+ def removePreferencesBackups (self , location : Optional [ int ] = 0 ):
737737 """Tell the node to remove backup preferences from the filesystem."""
738738 self .ensureSessionKey ()
739739
0 commit comments