File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
LOGGER = logging .getLogger (__name__ )
15
15
16
16
17
- async def backup (radio_path : str ):
17
+ async def nvram_read (radio_path : str ):
18
18
znp = ZNP (CONFIG_SCHEMA ({"device" : {"path" : radio_path }}))
19
19
await znp .connect ()
20
20
@@ -89,7 +89,7 @@ async def main(argv):
89
89
90
90
args = parser .parse_args (argv )
91
91
92
- obj = await backup (args .serial )
92
+ obj = await nvram_read (args .serial )
93
93
args .output .write (json .dumps (obj , indent = 4 ) + "\n " )
94
94
95
95
Original file line number Diff line number Diff line change 12
12
LOGGER = logging .getLogger (__name__ )
13
13
14
14
15
- async def restore (radio_path , backup ):
15
+ async def nvram_write (radio_path , backup ):
16
16
znp = ZNP (CONFIG_SCHEMA ({"device" : {"path" : radio_path }}))
17
17
18
18
await znp .connect ()
@@ -58,7 +58,7 @@ async def main(argv):
58
58
59
59
args = parser .parse_args (argv )
60
60
backup = json .load (args .input )
61
- await restore (args .serial , backup )
61
+ await nvram_write (args .serial , backup )
62
62
63
63
64
64
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments