Implement vacuum dustbin module (dust_bucket) (#1423)

Initial implementation for dustbin auto-emptying.

New features:
- `dustbin_empty` action to empty the dustbin immediately
- `dustbin_autocollection_enabled` to toggle the auto collection
- `dustbin_mode` to choose how often the auto collection is performed
This commit is contained in:
Teemu R.
2025-01-14 17:30:18 +01:00
committed by GitHub
parent 68f50aa763
commit 3c98efb015
8 changed files with 227 additions and 3 deletions

View File

@@ -640,7 +640,12 @@ class FakeSmartTransport(BaseTransport):
elif method[:3] == "set":
target_method = f"get{method[3:]}"
# Some vacuum commands do not have a getter
if method in ["setRobotPause", "setSwitchClean", "setSwitchCharge"]:
if method in [
"setRobotPause",
"setSwitchClean",
"setSwitchCharge",
"setSwitchDustCollection",
]:
return {"error_code": 0}
info[target_method].update(params)