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 0b349ec commit 0d57d65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/tuya/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ def get_dptype(
try:
return DPType(getattr(self.device, key)[dpcode].type)
except ValueError:
return TuyaEntity.determine_dptype(getattr(self.device, key)[dpcode].type)
return TuyaEntity.determine_dptype(
getattr(self.device, key)[dpcode].type
)

return None

Expand Down

0 comments on commit 0d57d65

Please sign in to comment.