feat(navigation): Implement 100% autonomous Blank Start architecture; purge heuristics
This commit is contained in:
@@ -80,10 +80,10 @@ def main():
|
||||
# Try to extract device from config if provided
|
||||
if args.config:
|
||||
try:
|
||||
# We use a dummy Config instance to parse the file
|
||||
bot_config = Config(first_run=True, config=args.config)
|
||||
bot_config.parse_args()
|
||||
device_id = bot_config.device_id or device_id
|
||||
import yaml
|
||||
with open(args.config, 'r', encoding='utf-8') as f:
|
||||
config_data = yaml.safe_load(f)
|
||||
device_id = config_data.get('device') or device_id
|
||||
logger.info(f"Loaded device ID from config: {device_id}")
|
||||
except Exception as e:
|
||||
logger.warning(f"Could not read config file {args.config}: {e}")
|
||||
|
||||
Reference in New Issue
Block a user