I installed this component some time ago, and had it running with my ESXi server running 6.7. I had 9 entities reporting, and all was fine. Recently I saw the component was not loading, but didn’t have time to troubleshoot. Now I’ve updated HAOS and HA itself, several restarts, but it’s still not loading. I can’t figure out what’s happening. There are 5 errors and 2 warnings in the log relating to this. Here’s the first error:
Logger: homeassistant.loader
Source: loader.py:1067
First occurred: 1:38:59 PM (1 occurrences)
Last logged: 1:38:59 PM
Unexpected exception importing component custom_components.esxi_stats
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1067, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/config/custom_components/esxi_stats/__init__.py", line 7, in <module>
from .esxi import (
File "/config/custom_components/esxi_stats/esxi.py", line 4, in <module>
from pyVim.connect import SmartConnect, SmartConnectNoSSL
File "/usr/local/lib/python3.12/site-packages/pyVim/connect.py", line 37, in <module>
from pyVmomi import vim, vmodl, SoapStubAdapter, SessionOrientedStub
File "/usr/local/lib/python3.12/site-packages/pyVmomi/__init__.py", line 39, in <module>
from pyVmomi.SoapAdapter import SoapStubAdapter, StubAdapterBase, SoapCmdStubAdapter, \
File "/usr/local/lib/python3.12/site-packages/pyVmomi/SoapAdapter.py", line 1003, in <module>
_SocketWrapper = ssl.wrap_socket
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'
Also, I was trying to figure out how to remove the integration./configuration and redo it, but I can’t even do that. When I try to delete my configuration in the Integrations menu, it never goes away. If I try to add a new entry, it comes up with another error: “Config flow could not be loaded: {“message”:“Invalid handler specified”}”
Googling around the issue as well as reading through this whole thread doesn’t seem to give me much; I’d appreciate any help provided.