home-assistant/core

After updating to 2024.10.3 (Yale) integrations stopped working

AbadiMac opened this issue · 4 comments

The problem

Hello,

I just updated from 2024.10.2 to 2024.10.3 and Yale integration showing not loaded!

What version of Home Assistant Core has the issue?

core-2024.10.3

What was the last working version of Home Assistant Core?

core-2024.10.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Yale

Link to integration documentation on our website

https://www.home-assistant.io/integrations/yale

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.loader
Source: loader.py:1067
First occurred: 11:10:17 PM (2 occurrences)
Last logged: 11:10:17 PM

Unexpected exception importing component homeassistant.components.yale
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 "/usr/src/homeassistant/homeassistant/components/yale/__init__.py", line 22, in <module>
    from .data import YaleData
  File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in <module>
    from yalexs.manager.data import YaleXSData
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in <module>
    from .activity import ActivityStream
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in <module>
    from .socketio import SocketIORunner
  File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in <module>
    import socketio
  File "/usr/local/lib/python3.12/site-packages/socketio/__init__.py", line 1, in <module>
    from .client import Client
  File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in <module>
    import engineio
  File "/usr/local/lib/python3.12/site-packages/engineio/__init__.py", line 2, in <module>
    from .middleware import WSGIApp, Middleware
  File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in <module>
    from engineio.static_files import get_static_file
SyntaxError: source code string cannot contain null bytes

Additional information

Logger: homeassistant.setup
Source: setup.py:334
First occurred: 11:10:17 PM (1 occurrences)
Last logged: 11:10:17 PM

Setup failed for 'yale': Unable to import component: Exception importing homeassistant.components.yale
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 "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/yale/init.py", line 22, in
from .data import YaleData
File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in
from yalexs.manager.data import YaleXSData
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in
from .activity import ActivityStream
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in
from .socketio import SocketIORunner
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in
import socketio
File "/usr/local/lib/python3.12/site-packages/socketio/init.py", line 1, in
from .client import Client
File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in
import engineio
File "/usr/local/lib/python3.12/site-packages/engineio/init.py", line 2, in
from .middleware import WSGIApp, Middleware
File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in
from engineio.static_files import get_static_file
SyntaxError: source code string cannot contain null bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 1007, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1078, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing homeassistant.components.yale

During handling of the above exception, another exception occurred:

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 "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/yale/init.py", line 22, in
from .data import YaleData
File "/usr/src/homeassistant/homeassistant/components/yale/data.py", line 6, in
from yalexs.manager.data import YaleXSData
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/data.py", line 24, in
from .activity import ActivityStream
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/activity.py", line 19, in
from .socketio import SocketIORunner
File "/usr/local/lib/python3.12/site-packages/yalexs/manager/socketio.py", line 1, in
import socketio
File "/usr/local/lib/python3.12/site-packages/socketio/init.py", line 1, in
from .client import Client
File "/usr/local/lib/python3.12/site-packages/socketio/client.py", line 3, in
import engineio
File "/usr/local/lib/python3.12/site-packages/engineio/init.py", line 2, in
from .middleware import WSGIApp, Middleware
File "/usr/local/lib/python3.12/site-packages/engineio/middleware.py", line 2, in
from engineio.static_files import get_static_file
SyntaxError: source code string cannot contain null bytes

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 334, in _async_setup_component
component = await integration.async_get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1027, in async_get_component
self._component_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1019, in async_get_component
comp = self._get_component()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1078, in _get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing homeassistant.components.yale

Hey there @bdraco, mind taking a look at this issue as it has been labeled with an integration (yale) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of yale can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign yale Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


yale documentation
yale source
(message by IssueLinks)