Skip to content

Commit

Permalink
Write Enphase Envoy data to log when in debug mode (home-assistant#10…
Browse files Browse the repository at this point in the history
  • Loading branch information
catsmanac authored Dec 13, 2023
1 parent 5dbd0de commit c318445
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/enphase_envoy/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ async def _async_update_data(self) -> dict[str, Any]:
if not self._setup_complete:
await self._async_setup_and_authenticate()
self._async_mark_setup_complete()
return (await envoy.update()).raw
# dump all received data in debug mode to assist troubleshooting
envoy_data = await envoy.update()
_LOGGER.debug("Envoy data: %s", envoy_data)
return envoy_data.raw
except INVALID_AUTH_ERRORS as err:
if self._setup_complete and tries == 0:
# token likely expired or firmware changed, try to re-authenticate
Expand Down

0 comments on commit c318445

Please sign in to comment.