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

Disc Space: Log is flooding with error message #313

Closed
1 task done
scharrrfi opened this issue May 27, 2024 · 0 comments · Fixed by #324
Closed
1 task done

Disc Space: Log is flooding with error message #313

scharrrfi opened this issue May 27, 2024 · 0 comments · Fixed by #324
Labels
bug Something isn't working

Comments

@scharrrfi
Copy link

Checklist

Describe the issue you are experiencing

Hi there,

thank you for this great integration!

I think since the last update, my log is flooding with the below error message.

In which version of Home Assistant Core do you have the problem?

2024.5.5

What version of Proxmox VE Custom Integration has the issue?

3.4.2

What version of Proxmox VE do you have the problem?

8.1.10

Diagnostics information

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant
Quelle: custom_components/proxmoxve/sensor.py:114
Integration: Proxmox VE (Dokumentation, Probleme)
Erstmals aufgetreten: 25. Mai 2024 um 08:51:58 (3334 Vorkommnisse)
Zuletzt protokolliert: 16:24:59

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 414, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 543, in state
value = self.native_value
^^^^^^^^^^^^^^^^^
File "/config/custom_components/proxmoxve/sensor.py", line 827, in native_value
native_value = value(data)
^^^^^^^^^^^
File "/config/custom_components/proxmoxve/sensor.py", line 114, in
value_fn=lambda x: (x.disk_used / x.disk_total) if x.disk_total > 0 else 0,
^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'UndefinedType' and 'int'

Additional information

No response

@scharrrfi scharrrfi added the bug Something isn't working label May 27, 2024
@dougiteixeira dougiteixeira mentioned this issue Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant