From 3b3193a118f4105aa5eb44e83678c0a0e5792b52 Mon Sep 17 00:00:00 2001 From: WillCodeForCats <48533968+WillCodeForCats@users.noreply.github.com> Date: Thu, 22 Sep 2022 13:01:10 -0700 Subject: [PATCH] Add integration config debug logging --- custom_components/solaredge_modbus_multi/hub.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/custom_components/solaredge_modbus_multi/hub.py b/custom_components/solaredge_modbus_multi/hub.py index 29ff468e..ebf70db6 100644 --- a/custom_components/solaredge_modbus_multi/hub.py +++ b/custom_components/solaredge_modbus_multi/hub.py @@ -96,6 +96,18 @@ def __init__( self.initalized = False self.online = False + _LOGGER.debug( + ( + f"{DOMAIN} configuration: " + f"number_of_inverters={self._number_of_inverters}, " + f"start_device_id={self._start_device_id}, " + f"detect_meters={self._detect_meters}, " + f"detect_batteries={self._detect_batteries}, " + f"single_device_entity={self._single_device_entity}, " + f"keep_modbus_open={self.keep_modbus_open}, " + ), + ) + async def _async_init_solaredge(self) -> None: if not self.is_socket_open(): raise HubInitFailed(f"Could not open Modbus/TCP connection to {self._host}")