diff --git a/homeassistant/components/switchbot_cloud/__init__.py b/homeassistant/components/switchbot_cloud/__init__.py index 4573d04e2a0..2676323c99c 100644 --- a/homeassistant/components/switchbot_cloud/__init__.py +++ b/homeassistant/components/switchbot_cloud/__init__.py @@ -171,6 +171,7 @@ async def make_device_data( "K20+ Pro", "Robot Vacuum Cleaner K10+ Pro Combo", "Robot Vacuum Cleaner S10", + "Robot Vacuum Cleaner S20", "S20", "Robot Vacuum Cleaner K11 Plus", ]: diff --git a/homeassistant/components/switchbot_cloud/vacuum.py b/homeassistant/components/switchbot_cloud/vacuum.py index cc1f4c13e0b..a3514f1bee6 100644 --- a/homeassistant/components/switchbot_cloud/vacuum.py +++ b/homeassistant/components/switchbot_cloud/vacuum.py @@ -245,6 +245,9 @@ def _async_make_entity( return SwitchBotCloudVacuumV2(api, device, coordinator) if device.device_type == "Robot Vacuum Cleaner K10+ Pro Combo": return SwitchBotCloudVacuumK10PlusProCombo(api, device, coordinator) - if device.device_type in VacuumCleanerV3Commands.get_supported_devices(): + if ( + device.device_type in VacuumCleanerV3Commands.get_supported_devices() + or device.device_type == "Robot Vacuum Cleaner S20" + ): return SwitchBotCloudVacuumV3(api, device, coordinator) return SwitchBotCloudVacuum(api, device, coordinator) diff --git a/tests/components/switchbot_cloud/test_vacuum.py b/tests/components/switchbot_cloud/test_vacuum.py index daa52f4f183..86929c6c49f 100644 --- a/tests/components/switchbot_cloud/test_vacuum.py +++ b/tests/components/switchbot_cloud/test_vacuum.py @@ -476,7 +476,7 @@ async def test_s20_start( ) -async def test_s20set_fan_speed( +async def test_s20_set_fan_speed( hass: HomeAssistant, mock_list_devices, mock_get_status ) -> None: """Test s20 set fan speed."""