Devices now handles subscribing to mqtt topics

This commit is contained in:
2023-04-12 04:37:16 +02:00
parent 34e5274e0b
commit 92c8f3074f
12 changed files with 93 additions and 63 deletions

View File

@@ -97,7 +97,12 @@ async fn app() -> anyhow::Result<()> {
);
}
let devices = devices::start(mqtt.subscribe(), presence.clone(), light_sensor.clone());
let devices = devices::start(
mqtt.subscribe(),
presence.clone(),
light_sensor.clone(),
client.clone(),
);
join_all(
config
.devices