From 22c12f4793107cd9a35b832478039be10ee70541 Mon Sep 17 00:00:00 2001 From: Avii Date: Sun, 16 Aug 2026 17:03:25 +0200 Subject: [PATCH] 1786892605 --- dashboard/src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dashboard/src/main.rs b/dashboard/src/main.rs index 2fc551c..581b3ac 100644 --- a/dashboard/src/main.rs +++ b/dashboard/src/main.rs @@ -32,6 +32,9 @@ async fn main() -> Result<(), AppError> { ui::bind_buttons(&app, c2s_tx); + // listen for data + tokio::spawn(ui::update_listener(app.as_weak(), s2c_rx)); + tokio::spawn({ let s2c_tx = s2c_tx.clone(); async move { @@ -39,11 +42,6 @@ async fn main() -> Result<(), AppError> { } }); - println!("Hello?"); - - // listen for data - tokio::spawn(ui::update_listener(app.as_weak(), s2c_rx)); - // start pulling data tokio::spawn(home_assistant::hass(s2c_tx, c2s_rx));