1786892605
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user