This commit is contained in:
Alex Janka 2024-02-22 10:13:48 +11:00
parent 0077eaddb1
commit fb6edfe83e

View file

@ -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)