Update status field to be optional

The status field in MagbotConfig is now an Option<MagbotStatus> instead
of a direct MagbotStatus value, allowing it to be None when not
configured.
```
This commit is contained in:
2026-03-24 13:19:52 -05:00
parent 3b5a4a8cb2
commit de23493572
+1
View File
@@ -26,6 +26,7 @@ pub struct MagbotConfig {
pub username: String,
pub password: String,
pub room_id: String,
pub status: Option<MagbotStatus>,
}
impl MagbotConfig {
pub fn from_str(input: &str) -> anyhow::Result<Self> {