Skip to content

Commit

Permalink
Update switch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
veista committed Mar 28, 2022
1 parent 202ca69 commit 9f2dc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/smartthings/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
for device in broker.devices.values():
for capability in broker.get_assigned(device.device_id, "switch"):
maps = CAPABILITY_TO_SWITCH[capability]
if capability == "custom.autoCleaningMode":
if capability in ("custom.autoCleaningMode", "custom.spiMode"):
switches.extend(
[
SmartThingsCustomSwitch(
Expand Down

0 comments on commit 9f2dc53

Please sign in to comment.