diff --git a/homekit-exporter/src/main.rs b/homekit-exporter/src/main.rs index 8dfb3f5..61674dc 100644 --- a/homekit-exporter/src/main.rs +++ b/homekit-exporter/src/main.rs @@ -26,9 +26,10 @@ enum Commands { async fn main() -> Result<(), HomekitError> { env_logger::init(); let args = Args::parse(); + if args.pairing_data.is_file() { let controller = HomekitController::load(args.pairing_data)?; - // println!("{controller:#?}"); + controller.connect_to(&args.device_name).await?; } else { log::error!("{:?} is not a file!", args.pairing_data)