فهرست منبع

Diagnostics: include tinytuya version.

To help with diagnosing update issues, such as was suspected in #520
Jason Rumney 2 سال پیش
والد
کامیت
01564cb116
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      custom_components/tuya_local/diagnostics.py

+ 3 - 0
custom_components/tuya_local/diagnostics.py

@@ -9,6 +9,8 @@ from homeassistant.core import HomeAssistant, callback
 from homeassistant.helpers import device_registry as dr, entity_registry as er
 from homeassistant.helpers.device_registry import DeviceEntry
 
+from tinytuya import __version__ as tinytuya_version
+
 from .const import (
     API_PROTOCOL_VERSIONS,
     CONF_PROTOCOL_VERSION,
@@ -51,6 +53,7 @@ def _async_get_diagnostics(
         "local_key": REDACTED,
         "host": REDACTED,
         "protocol_version": entry.data[CONF_PROTOCOL_VERSION],
+        "tinytuya_version": tinytuya_version,
     }
 
     # The DeviceEntry also has interesting looking data, but this