vesync crashes on init
See original GitHub issueThe 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
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:15 (3 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
is VeSync not working / having issues for you? - mwallpapers
Usually when you open an app, you will see a black screen for few seconds and then app will crash with or without...
Read more >0.66: VeSync switches, HomematicIP, and a group cover - #20 by ...
Any ideas please? Here is the error I'm getting: Error while setting up platform limitlessled. Traceback (most recent call last): File “/usr/lib/python3.
Read more >Issue 32: Error while get code by gclient - Monorail
I've sync the code last night, it seams ok now. thank for the work. Comment 4 by schedule andrew@webrtc.org ...
Read more >Last update broke my HACS integration : r/homeassistant
Logger: homeassistant Source: custom_components/hacs/__init__.py:44 Integration: HACS (documentation, issues) First occurred: March 4, 2022, ...
Read more >VeSync App — Vesync Co., Ltd
Our brands cover a variety of markets and demographics, but the VeSync app pulls everything back together. With one easy location for smart...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

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