Skip to content

Commit

Permalink
fix: Excessive logging during discovery flow
Browse files Browse the repository at this point in the history
Excessive logging when the solar inverter goes offline at night #360
  • Loading branch information
davidrapan authored Jan 8, 2025
1 parent 07e434c commit 54361dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/solarman/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def _discover(self, ips = IP_BROADCAST, wait = False, source = IP_ANY) ->
except (TimeoutError, socket.timeout):
break
except Exception as e:
_LOGGER.exception(f"_discover: {format_exception(e)}")
_LOGGER.debug(f"_discover exception: {format_exception(e)}")

async def _discover_all(self) -> dict:
_LOGGER.debug(f"_discover_all")
Expand Down Expand Up @@ -90,4 +90,4 @@ async def discover(self, ping_only = False):
if len(self._devices) == 0:
_LOGGER.debug(f"discover: {f'attempts left: {attempts_left}{'' if attempts_left > 0 else ', aborting.'}'}")

return self._devices
return self._devices

0 comments on commit 54361dd

Please sign in to comment.