feat: FromPyFromStr and ToStrToPy macros YAY
This commit is contained in:
@@ -146,7 +146,7 @@ async fn real_main(
|
||||
async {
|
||||
let jacob_phone_id = "galaxy_s21_ultra_1";
|
||||
let jacob_phone_object_id = ObjectId::from_str(jacob_phone_id).unwrap();
|
||||
|
||||
|
||||
let services = Python::attach(|py| home_assistant.services(py)).unwrap();
|
||||
|
||||
let mut interval = interval(Duration::from_secs(15));
|
||||
@@ -163,7 +163,7 @@ async fn real_main(
|
||||
// filter: command::DoNotDisturbFilter::Off,
|
||||
// }, context, target, false).await;
|
||||
// dbg!(turn_off_result);
|
||||
|
||||
|
||||
// let instant = interval.tick().await;
|
||||
// let context: Option<Context<()>> = None;
|
||||
// let target: Option<()> = None;
|
||||
@@ -172,7 +172,7 @@ async fn real_main(
|
||||
// filter: command::DoNotDisturbFilter::AlarmsOnly,
|
||||
// }, context, target, false).await;
|
||||
// dbg!(alarms_only_result);
|
||||
|
||||
|
||||
// let instant = interval.tick().await;
|
||||
// let context: Option<Context<()>> = None;
|
||||
// let target: Option<()> = None;
|
||||
@@ -181,7 +181,7 @@ async fn real_main(
|
||||
// filter: command::DoNotDisturbFilter::PriorityOnly,
|
||||
// }, context, target, false).await;
|
||||
// dbg!(priority_only_result);
|
||||
|
||||
|
||||
// let instant = interval.tick().await;
|
||||
// let context: Option<Context<()>> = None;
|
||||
// let target: Option<()> = None;
|
||||
@@ -192,7 +192,8 @@ async fn real_main(
|
||||
// dbg!(total_silence_result);
|
||||
// }
|
||||
}
|
||||
).0
|
||||
)
|
||||
.0
|
||||
}
|
||||
|
||||
#[pyfunction]
|
||||
|
||||
Reference in New Issue
Block a user