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

AttributeError: 'list' object has no attribute 'to_bytes' #136

Closed
doudz opened this issue Oct 9, 2022 · 1 comment · Fixed by #137
Closed

AttributeError: 'list' object has no attribute 'to_bytes' #136

doudz opened this issue Oct 9, 2022 · 1 comment · Fixed by #137

Comments

@doudz
Copy link
Collaborator

doudz commented Oct 9, 2022

@puddly : There's an error in the last update

Thank for all you've done but please don't deploy a new release without test it

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/config_entries.py", line 365, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/zha/__init__.py", line 112, in async_setup_entry
    await zha_gateway.async_initialize()
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 185, in async_initialize
    raise exc
  File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/zha/core/gateway.py", line 172, in async_initialize
    self.application_controller = await app_controller_cls.new(
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy/application.py", line 144, in new
    await app.startup(auto_form=auto_form)
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy/application.py", line 124, in startup
    await self.connect()
  File "/srv/homeassistant/lib/python3.10/site-packages/zigpy_zigate/zigbee/application.py", line 47, in connect
    major, minor = version.to_bytes(2, "big")
AttributeError: 'list' object has no attribute 'to_bytes'
@puddly
Copy link
Collaborator

puddly commented Oct 9, 2022

I'm doing what I can. Zigpy-zigate is the only radio library with 60% unit test coverage, little of which covers any useful part of application.py.

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

Successfully merging a pull request may close this issue.

2 participants