diff --git a/src/DuetAPI/ObjectModel/Volumes/Volume.cs b/src/DuetAPI/ObjectModel/Volumes/Volume.cs
index c59dce252..2307202f6 100644
--- a/src/DuetAPI/ObjectModel/Volumes/Volume.cs
+++ b/src/DuetAPI/ObjectModel/Volumes/Volume.cs
@@ -38,12 +38,13 @@ public bool Mounted
///
/// Name of this volume
///
- public string Name
+ [SbcProperty(false)]
+ public string? Name
{
get => _name;
set => SetPropertyValue(ref _name, value);
}
- private string _name = string.Empty;
+ private string? _name;
///
/// Number of currently open files or null if unknown
@@ -69,12 +70,13 @@ public long? PartitionSize
///
/// Logical path of the storage device
///
- public string Path
+ [SbcProperty(false)]
+ public string? Path
{
get => _path;
set => SetPropertyValue(ref _path, value);
}
- private string _path = string.Empty;
+ private string? _path;
///
/// Speed of the storage device (in bytes/s or null if unknown)