Просмотр исходного кода

config_flow: always log the DPS when adding new device.

A change I thought I made in January, but must have been on a branch.

Issue #1667
Jason Rumney 2 лет назад
Родитель
Сommit
44ee44837e
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      custom_components/tuya_local/config_flow.py

+ 9 - 9
custom_components/tuya_local/config_flow.py

@@ -94,15 +94,15 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
         if best_match < 100:
             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,
-                best_match,
-                log_json(dps),
-            )
-            _LOGGER.warning(
-                "Report this to https://github.com/make-all/tuya-local/issues/"
-            )
+        _LOGGER.warning(
+            "Device matches %s with quality of %d%%. DPS: %s",
+            best_matching_type,
+            best_match,
+            log_json(dps),
+        )
+        _LOGGER.warning(
+            "Report this to https://github.com/make-all/tuya-local/issues/",
+        )
         if types:
             return self.async_show_form(
                 step_id="select_type",