From 6cfa6dd6be0708296fdade1137e9cb8ca84ed1b8 Mon Sep 17 00:00:00 2001 From: testdev Date: Tue, 2 Jun 2026 16:34:49 +0800 Subject: [PATCH] Add Battery Circulator Fan 2 Pro to circulator fan commands The Circulator Fan Pro reports its cloud deviceType as "Battery Circulator Fan 2 Pro"; add it to the devices supported by BatteryCirculatorFanCommands so the fan and its night light can be controlled via the cloud API. Co-Authored-By: Claude Opus 4.8 --- switchbot_api/commands.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/switchbot_api/commands.py b/switchbot_api/commands.py index 71e7d16..1451141 100644 --- a/switchbot_api/commands.py +++ b/switchbot_api/commands.py @@ -374,7 +374,11 @@ class BatteryCirculatorFanCommands(Commands): @classmethod def get_supported_devices(cls) -> list[str]: """Get supported devices.""" - return ["Circulator Fan", "Battery Circulator Fan"] + return [ + "Circulator Fan", + "Battery Circulator Fan", + "Battery Circulator Fan 2 Pro", + ] class TVCommands(Commands):