core: vesync crashes on init
The problem
vesync crashes on init
Logger: homeassistant.config_entries
Source: components/vesync/common.py:19
First occurred: 11:12:39 PM (1 occurrences)
Last logged: 11:12:39 PM
Error setting up entry ljmerza@gmail.com for vesync
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 335, in async_setup
result = await component.async_setup_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/vesync/__init__.py", line 46, in async_setup_entry
device_dict = await async_process_devices(hass, manager)
File "/usr/src/homeassistant/homeassistant/components/vesync/common.py", line 19, in async_process_devices
await hass.async_add_executor_job(manager.update)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/pyvesync/vesync.py", line 296, in update
device.update()
File "/usr/local/lib/python3.9/site-packages/pyvesync/vesyncfan.py", line 121, in update
self.get_details()
File "/usr/local/lib/python3.9/site-packages/pyvesync/vesyncfan.py", line 102, in get_details
outer_result = r.get('result', {})
AttributeError: 'NoneType' object has no attribute 'get'
What version of Home Assistant Core has the issue?
2022.3.8
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
vesync
Link to integration documentation on our website
https://www.home-assistant.io/integrations/vesync
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 16 (3 by maintainers)
Noticed an error after the update tonight to 2022.4.6.
Logger: homeassistant.config_entries Source: components/vesync/common.py:19 First occurred: 11:53:30 PM (1 occurrences) Last logged: 11:53:30 PM
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 335, in async_setup result = await component.async_setup_entry(hass, self) File “/usr/src/homeassistant/homeassistant/components/vesync/init.py”, line 46, in async_setup_entry device_dict = await async_process_devices(hass, manager) File “/usr/src/homeassistant/homeassistant/components/vesync/common.py”, line 19, in async_process_devices await hass.async_add_executor_job(manager.update) File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) File “/usr/local/lib/python3.9/site-packages/pyvesync/vesync.py”, line 296, in update device.update() File “/usr/local/lib/python3.9/site-packages/pyvesync/vesyncoutlet.py”, line 69, in update self.get_details() File “/usr/local/lib/python3.9/site-packages/pyvesync/vesyncoutlet.py”, line 175, in get_details power = round(float(Helpers.calculate_hex(power)), 2) File “/usr/local/lib/python3.9/site-packages/pyvesync/helpers.py”, line 139, in calculate_hex converted_hex = (int(hex_conv[0], 16) + int(hex_conv[1], 16)) / 8192 IndexError: list index out of range
Still get errors
The
index out of range
issue is fixed in https://github.com/home-assistant/core/pull/70281 which is likely coming in the next major release (in a couple of weeks). I’m checking to see if we can get it cherry-picked into a point release sooner.