Skip to content

Commit

Permalink
Update tapo_hub.py (#571)
Browse files Browse the repository at this point in the history
possible fix for S220 support
  • Loading branch information
DimiTerz committed Oct 16, 2023
1 parent 037a898 commit d246035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tapo/hub/tapo_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _create_child_device(child_state: HubChildBaseInfo, hub: HubDevice):
return S200ButtonDevice(hub, device_id)
elif "t100" in model:
return T100MotionSensor(hub, device_id)
elif any(supported in model for supported in ["s200", "s210"]):
elif any(supported in model for supported in ["s220", "s210"]):
return SwitchChildDevice(hub, device_id)
return None

Expand Down

0 comments on commit d246035

Please sign in to comment.