mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Write Enphase Envoy data to log when in debug mode (#105456)
This commit is contained in:
parent
5dbd0dede1
commit
c318445a76
@ -144,7 +144,10 @@ class EnphaseUpdateCoordinator(DataUpdateCoordinator[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
|
||||
|
Loading…
x
Reference in New Issue
Block a user