Add missing device information synchronization

This commit is contained in:
2024-09-15 22:06:24 +02:00
parent 9c45e541dd
commit 79b2ad12d8
3 changed files with 19 additions and 1 deletions

View File

@@ -260,6 +260,7 @@ impl Handler<SynchronizeDevice> for EnergyActor {
type Result = anyhow::Result<Vec<RelaySyncStatus>>;
fn handle(&mut self, msg: SynchronizeDevice, _ctx: &mut Context<Self>) -> Self::Result {
self.devices.synchronise_dev_info(&msg.0, msg.1.clone())?;
self.engine.device_state(&msg.0).record_ping();
// TODO : implement real code