clean
This commit is contained in:
parent
0077eaddb1
commit
fb6edfe83e
|
@ -26,9 +26,10 @@ enum Commands {
|
||||||
async fn main() -> Result<(), HomekitError> {
|
async fn main() -> Result<(), HomekitError> {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
|
|
||||||
if args.pairing_data.is_file() {
|
if args.pairing_data.is_file() {
|
||||||
let controller = HomekitController::load(args.pairing_data)?;
|
let controller = HomekitController::load(args.pairing_data)?;
|
||||||
// println!("{controller:#?}");
|
|
||||||
controller.connect_to(&args.device_name).await?;
|
controller.connect_to(&args.device_name).await?;
|
||||||
} else {
|
} else {
|
||||||
log::error!("{:?} is not a file!", args.pairing_data)
|
log::error!("{:?} is not a file!", args.pairing_data)
|
||||||
|
|
Loading…
Reference in a new issue