Skip to content

Commit

Permalink
config_flow: always round match quality and get dps for logging.
Browse files Browse the repository at this point in the history
Issue #1667
  • Loading branch information
make-all committed Feb 18, 2024
1 parent b54c53d commit d2415bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/tuya_local/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ async def async_step_select_type(self, user_input=None):
best_match = q
best_matching_type = type.config_type

if best_match < 100:
best_match = int(best_match)
dps = self.device._get_cached_state()
best_match = int(best_match)
dps = self.device._get_cached_state()
_LOGGER.warning(
"Device matches %s with quality of %d%%. DPS: %s",
best_matching_type,
Expand Down

0 comments on commit d2415bb

Please sign in to comment.