Browse Source

Config flow: modify the log message requesting to report dps

To avoid confusion, we only want reports following the new device template.
The message by itself is not a bug, and should not be reported as a bug
without other supporting info.
Jason Rumney 1 year ago
parent
commit
7a88cc83f4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      custom_components/tuya_local/config_flow.py

+ 2 - 2
custom_components/tuya_local/config_flow.py

@@ -403,7 +403,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
                 self.__cloud_device["ip"] = local_device["ip"]
                 self.__cloud_device["version"] = local_device["version"]
             else:
-                _LOGGER.warn(f"Could not find device: {self.__cloud_device['id']}")
+                _LOGGER.warning(f"Could not find device: {self.__cloud_device['id']}")
             return await self.async_step_local(None)
 
         return self.async_show_form(
@@ -487,7 +487,7 @@ class ConfigFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
             log_json(dps),
         )
         _LOGGER.warning(
-            "Report this to https://github.com/make-all/tuya-local/issues/",
+            "Include the previous log message with any new device request to https://github.com/make-all/tuya-local/issues/",
         )
         if types:
             return self.async_show_form(