1786892605

This commit is contained in:
2026-08-16 17:03:25 +02:00
parent 15cbe12520
commit 22c12f4793

View File

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