Skip to content

Commit 9f2dc53

Browse files
authored
Update switch.py
1 parent 202ca69 commit 9f2dc53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/smartthings/switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
6666
for device in broker.devices.values():
6767
for capability in broker.get_assigned(device.device_id, "switch"):
6868
maps = CAPABILITY_TO_SWITCH[capability]
69-
if capability == "custom.autoCleaningMode":
69+
if capability in ("custom.autoCleaningMode", "custom.spiMode"):
7070
switches.extend(
7171
[
7272
SmartThingsCustomSwitch(

0 commit comments

Comments
 (0)