We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022-05-25 15:54:53 ERROR (MainThread) [custom_components.enphase_envoy] Unexpected error fetching envoy Envoy ############ data: division by zero Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh self.data = await self._async_update_data() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data return await self.update_method() File "/config/custom_components/enphase_envoy/init.py", line 78, in async_update_data data[description.key] = round(battery_sum / len(battery_data), 2) ZeroDivisionError: division by zero 2022-05-25 15:54:53 DEBUG (MainThread) [custom_components.enphase_envoy] Finished fetching envoy Envoy ############ data in 3.165 seconds (success: False)
temp solution is to wrap the math on line 78 in a try catch. Fixed it locally on my system,.
The text was updated successfully, but these errors were encountered:
made a pull request to fix this issue: #8
Sorry, something went wrong.
This should be fixed by #42
No branches or pull requests
2022-05-25 15:54:53 ERROR (MainThread) [custom_components.enphase_envoy] Unexpected error fetching envoy Envoy ############ data: division by zero
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 191, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
return await self.update_method()
File "/config/custom_components/enphase_envoy/init.py", line 78, in async_update_data
data[description.key] = round(battery_sum / len(battery_data), 2)
ZeroDivisionError: division by zero
2022-05-25 15:54:53 DEBUG (MainThread) [custom_components.enphase_envoy] Finished fetching envoy Envoy ############ data in 3.165 seconds (success: False)
temp solution is to wrap the math on line 78 in a try catch. Fixed it locally on my system,.
The text was updated successfully, but these errors were encountered: