Skip to content
New issue

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

[Question] ZeroDivisionError: division by zero #4

Closed
ikke68 opened this issue Apr 29, 2020 · 1 comment
Closed

[Question] ZeroDivisionError: division by zero #4

ikke68 opened this issue Apr 29, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@ikke68
Copy link

ikke68 commented Apr 29, 2020

Hi,

I followed al you're steps , and also added the intergration for OMV. but there aren't any sensors showing up.. But there is something showing in the log file, see below.

Log Details (ERROR)
Logger: homeassistant.config_entries
Source: custom_components/openmediavault/omv_controller.py:133
First occurred: 3:45:24 PM (1 occurrences)
Last logged: 3:45:24 PM

Error setting up entry OMV for openmediavault
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/config/custom_components/openmediavault/init.py", line 31, in async_setup_entry
await controller.async_update()
File "/config/custom_components/openmediavault/omv_controller.py", line 104, in async_update
await self.hass.async_add_executor_job(self.get_hwinfo)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/openmediavault/omv_controller.py", line 133, in get_hwinfo
int(self.data["hwinfo"]["memUsed"]) / int(self.data["hwinfo"]["memTotal"])
ZeroDivisionError: division by zero
Thanks for looking into it!!

@ikke68 ikke68 added the question Further information is requested label Apr 29, 2020
@tomaae
Copy link
Owner

tomaae commented Apr 29, 2020

Thats probably same thing as #2

@tomaae tomaae changed the title [Question] [Question] ZeroDivisionError: division by zero May 1, 2020
@tomaae tomaae added the duplicate This issue or pull request already exists label May 1, 2020
@tomaae tomaae closed this as completed May 6, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants