Skip to content

Commit e94b972

Browse files
committed
Fix BulbDevice set_bulb_type()
1 parent cd99020 commit e94b972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tinytuya/BulbDevice.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,9 @@ def set_bulb_capabilities(self, mapping):
896896
else:
897897
default_dpset = {}
898898

899+
if not isinstance( mapping, dict ):
900+
mapping = {}
901+
899902
for k in self.dpset:
900903
if k in mapping:
901904
self.dpset[k] = mapping[k]

0 commit comments

Comments
 (0)