File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
custom_components/solaredge_modbus_multi Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ async def async_get_config_entry_diagnostics(
42
42
hub = hass .data [DOMAIN ][config_entry .entry_id ]["hub" ]
43
43
44
44
data : dict [str , Any ] = {
45
+ "pymodbus_version" : hub .pymodbus_version ,
45
46
"config_entry" : async_redact_data (config_entry .as_dict (), REDACT_CONFIG ),
46
47
"yaml" : async_redact_data (hass .data [DOMAIN ]["yaml" ], REDACT_CONFIG ),
47
48
}
Original file line number Diff line number Diff line change @@ -179,6 +179,8 @@ def __init__(
179
179
180
180
self ._client = None
181
181
182
+ self ._pymodbus_version = pymodbus_version
183
+
182
184
_LOGGER .debug (
183
185
(
184
186
f"{ DOMAIN } configuration: "
@@ -195,7 +197,7 @@ def __init__(
195
197
),
196
198
)
197
199
198
- _LOGGER .debug (f"pymodbus version { pymodbus_version } " )
200
+ _LOGGER .debug (f"pymodbus version { self . pymodbus_version } " )
199
201
200
202
async def _async_init_solaredge (self ) -> None :
201
203
"""Detect devices and load initial modbus data from inverters."""
@@ -721,6 +723,10 @@ def number_of_inverters(self) -> int:
721
723
def sleep_after_write (self ) -> int :
722
724
return self ._sleep_after_write
723
725
726
+ @property
727
+ def pymodbus_version (self ) -> str :
728
+ return self ._pymodbus_version
729
+
724
730
@property
725
731
def coordinator_timeout (self ) -> int :
726
732
if not self .initalized :
You can’t perform that action at this time.
0 commit comments