1786892605
This commit is contained in:
@@ -32,6 +32,9 @@ async fn main() -> Result<(), AppError> {
|
|||||||
|
|
||||||
ui::bind_buttons(&app, c2s_tx);
|
ui::bind_buttons(&app, c2s_tx);
|
||||||
|
|
||||||
|
// listen for data
|
||||||
|
tokio::spawn(ui::update_listener(app.as_weak(), s2c_rx));
|
||||||
|
|
||||||
tokio::spawn({
|
tokio::spawn({
|
||||||
let s2c_tx = s2c_tx.clone();
|
let s2c_tx = s2c_tx.clone();
|
||||||
async move {
|
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
|
// start pulling data
|
||||||
tokio::spawn(home_assistant::hass(s2c_tx, c2s_rx));
|
tokio::spawn(home_assistant::hass(s2c_tx, c2s_rx));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user