From fb6edfe83ec115819736ea4e33b720017a395f77 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 22 Feb 2024 10:13:48 +1100 Subject: [PATCH] clean --- homekit-exporter/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)