mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-12 18:38:03 +00:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user