Skip to content

Commit

Permalink
Move set_bulb_type to correct class
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jun 5, 2022
1 parent 3b9909f commit 5812a6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tinytuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,6 @@ def add_dps_to_request(self, dp_indicies):
else:
self.dps_to_request.update({str(index): None for index in dp_indicies})

def set_bulb_type(self, type):
self.bulb_type = type

def set_version(self, version):
self.version = version

Expand Down Expand Up @@ -1366,6 +1363,9 @@ def turn_off(self, switch=0, nowait=False):
switch = self.DPS_INDEX_ON[self.bulb_type]
self.set_status(False, switch, nowait=nowait)

def set_bulb_type(self, type):
self.bulb_type = type

def set_mode(self, mode="white", nowait=False):
"""
Set bulb mode
Expand Down

0 comments on commit 5812a6f

Please sign in to comment.