Make sure the presence is recalculated after a device is removed
This commit is contained in:
parent
27a63b1a79
commit
e16e30ffe2
|
@ -49,7 +49,6 @@ impl OnMqtt for Presence {
|
|||
// Remove the device from the map
|
||||
debug!("State of device [{device_name}] has been removed");
|
||||
self.devices.remove(device_name);
|
||||
return;
|
||||
} else {
|
||||
let present = match PresenceMessage::try_from(message) {
|
||||
Ok(state) => state.present(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user