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

Crash while consuming data #4

Open
lbaey opened this issue Jan 30, 2023 · 1 comment
Open

Crash while consuming data #4

lbaey opened this issue Jan 30, 2023 · 1 comment

Comments

@lbaey
Copy link

lbaey commented Jan 30, 2023

With defaut config, novus300bus crashes on my installation... did you encounter this issue ?

Logger: homeassistant.components.sensor
Source: custom_components/novus300bus/sensor.py:148
Integration: Capteur (documentation, issues)
First occurred: 22:28:25 (1 occurrences)
Last logged: 22:28:25

Error while setting up novus300bus platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/novus300bus/sensor.py", line 237, in async_setup_platform
    await serial_read(port, baudrate, timeout=0, stopbits=STOPBITS_ONE, parity=PARITY_MARK, bytesize=EIGHTBITS, rtscts=False, dsrdtr=False)
  File "/config/custom_components/novus300bus/sensor.py", line 120, in serial_read
    result = consumePackage(data)
  File "/config/custom_components/novus300bus/sensor.py", line 148, in consumePackage
    while not isCommand(data[2]):
IndexError: list index out of range

BenPru added a commit that referenced this issue Jan 30, 2023
BenPru added a commit that referenced this issue Jan 30, 2023
Try fix IndexError: list index out of range #4 
Change device_class to enum #3
@BenPru
Copy link
Owner

BenPru commented Jan 30, 2023

Please try the current version. Thanks.
I can not test this because I'm no more using this integration.
It is not running in a own thread and slow down the complete ha installation and the RS485 bus. For me my novus is getting unstable with it.

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

2 participants