aboutsummaryrefslogtreecommitdiff
path: root/examples/binary_sensor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/binary_sensor.rs')
-rw-r--r--examples/binary_sensor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/binary_sensor.rs b/examples/binary_sensor.rs
index 7363a6c..27cfdb5 100644
--- a/examples/binary_sensor.rs
+++ b/examples/binary_sensor.rs
@@ -41,7 +41,7 @@ async fn main_task(spawner: Spawner) {
41async fn binary_sensor_class(mut switch: embassy_ha::BinarySensor<'static>) { 41async fn binary_sensor_class(mut switch: embassy_ha::BinarySensor<'static>) {
42 loop { 42 loop {
43 let state = switch.toggle(); 43 let state = switch.toggle();
44 println!("state = {}", state); 44 tracing::info!("state = {}", state);
45 Timer::after_secs(2).await; 45 Timer::after_secs(2).await;
46 } 46 }
47} 47}