Skip to content

Commit

Permalink
Merge pull request #28 from JohnMTorgerson/fix-color
Browse files Browse the repository at this point in the history
Fixed issue #21, where setting color would give error
  • Loading branch information
shauntarves authored May 17, 2021
2 parents 61a6c6a + ea141d8 commit 7bf6a97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wyze_sdk/api/devices/bulbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def set_color(self, *, device_mac: str, device_model: str, color: str, **kwargs)
if device_model not in DeviceModels.MESH_BULB:
raise WyzeFeatureNotSupportedError("set_color")

prop_def = BulbProps.color()()
prop_def = BulbProps.color()
prop_def.validate(color)

return super()._api_client().run_action_list(
Expand Down
2 changes: 1 addition & 1 deletion wyze_sdk/models/devices/bulbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def color(self, value: Union[str, DeviceProp]):
@classmethod
def props(cls) -> dict[str, PropDef]:
return {**Bulb.props(), **{
"color": BulbProps.color()(),
"color": BulbProps.color(),
"remaining_time": BulbProps.remaining_time(),
"control_light": BulbProps.control_light(),
"power_loss_recovery": BulbProps.power_loss_recovery(), # remember_off
Expand Down

0 comments on commit 7bf6a97

Please sign in to comment.