Display relay consumption history
This commit is contained in:
@ -115,6 +115,11 @@ impl DevicesList {
|
||||
self.0.clone().into_values().collect()
|
||||
}
|
||||
|
||||
/// Get a reference on the full list of devices
|
||||
pub fn full_list_ref(&self) -> Vec<&Device> {
|
||||
self.0.values().collect()
|
||||
}
|
||||
|
||||
/// Get the information about a single device
|
||||
pub fn get_single(&self, id: &DeviceId) -> Option<Device> {
|
||||
self.0.get(id).cloned()
|
||||
|
Reference in New Issue
Block a user