66import sys
77from typing import Any
88
9- current_script_dir = os .path .dirname (os .path .abspath (__file__ ))
10- project_root_dir = os .path .abspath (os .path .join (current_script_dir , os .pardir ))
9+ _current_script_dir = os .path .dirname (os .path .abspath (__file__ ))
10+ _project_root_dir = os .path .abspath (os .path .join (_current_script_dir , os .pardir ))
1111
12- if project_root_dir not in sys .path :
13- sys .path .append (project_root_dir )
12+ if _project_root_dir not in sys .path :
13+ sys .path .append (_project_root_dir )
1414
1515from airos .data import AirOS8Data , Interface , Remote , Station , Wireless # noqa: E402
1616
@@ -31,7 +31,7 @@ def main() -> None:
3131 sys .path .append (project_root_dir )
3232
3333 # Load the JSON data
34- with open (sys .argv [1 ]) as f :
34+ with open (sys .argv [1 ], encoding = "utf-8" ) as f :
3535 data = json .loads (f .read ())
3636
3737 try :
@@ -65,7 +65,6 @@ def main() -> None:
6565
6666 _LOGGER .info (" -> Checking list of Interface objects..." )
6767 interfaces = data ["interfaces" ]
68- interface_obj_list = [] # noqa: F841
6968 for i , interface_data in enumerate (interfaces ):
7069 _LOGGER .info (" -> Checking Interface object at index %s..." , i )
7170 _LOGGER .info (" Interface should be %s." , interface_data ["ifname" ])
0 commit comments