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

Cannot start with 2024.12.b1 #328

Open
Bluhme1 opened this issue Nov 29, 2024 · 3 comments
Open

Cannot start with 2024.12.b1 #328

Bluhme1 opened this issue Nov 29, 2024 · 3 comments

Comments

@Bluhme1
Copy link

Bluhme1 commented Nov 29, 2024

@lukas-hetzenecker

See log

Denne fejl stammer fra en brugerdefineret integration.

Logger: homeassistant
Kilde: custom_components/remote_homeassistant/init.py:455
integration: Remote Home-Assistant (dokumentation, problemer)
Første forekomst: 13.47.58 (1 forekomster)
Senest logget: 13.47.58

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/remote_homeassistant/init.py", line 265, in setup_components_and_platforms
await remote.async_connect()
File "/config/custom_components/remote_homeassistant/init.py", line 455, in async_connect
self._connection = await session.ws_connect(url, max_msg_size = self._max_msg_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 1107, in _ws_connect
conn_proto.set_parser(WebSocketReader(reader, max_msg_size), reader)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
TypeError: Argument 'max_msg_size' has incorrect type (expected int, got NoneType)

@alsFC
Copy link

alsFC commented Dec 4, 2024

Still broken in 2024.12.0

@SinclairKS
Copy link

SinclairKS commented Dec 5, 2024

Not a programmer, but forcing the max_msg_size value to 16777216 (default max from the const.py file) allows the integration to return to normal operation (as far as I've seen so far). Didn't trace the issue any further (and I just tinker) but best as I can see the value being read at the top of the __init__.py file seems to be coming up empty. Probably a simple actual fix.

Line 455 in __init__.py: self._connection = await session.ws_connect(url, max_msg_size = 16777216)

@jaym25
Copy link
Collaborator

jaym25 commented Dec 5, 2024

Update to version 4.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants