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 0d57d65 commit 16b75cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/tuya/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def get_dptype(
try:
return DPType(getattr(self.device, key)[dpcode].type)
except ValueError:
LOGGER.warning(f"Device DPType fallback: {self.device.name}")
return TuyaEntity.determine_dptype(
getattr(self.device, key)[dpcode].type
)
Expand Down

0 comments on commit 16b75cc

Please sign in to comment.