Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
azerty9971 committed Aug 8, 2024
1 parent f90a2cd commit 0b349ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/tuya/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def get_dptype(
try:
return DPType(getattr(self.device, key)[dpcode].type)
except ValueError:
return TuyaEntity.determine_dptype(self.device, key)[dpcode].type
return TuyaEntity.determine_dptype(getattr(self.device, key)[dpcode].type)

return None

Expand Down

0 comments on commit 0b349ec

Please sign in to comment.