-
Notifications
You must be signed in to change notification settings - Fork 11
Description
The problem
I have noticed over the last couple of months that I am prompted to add a VeSync integration despite all of my existing devices working properly and there being no new devices. I also apparently have a "failed to set up" failure, but all of my devices seem to work correctly.
I own 7 devices and all of them appear correctly. I have no new devices, but as you can see, the integration is prompting me to add four new devices. I have seen this before (though only ever one device) and when I click add, it has me sign in and then the box goes away; no discernible change to state.
With debug logs, I see the typical big blurb for finding the devices during setup (attached as file). I then get an error (apparent ID redacted):
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/vesync/__init__.py", line 87, in async_setup_entry
hass.data[DOMAIN][config_entry.entry_id]["coordinator"] = coordinator
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '<redacted>'
I also get the following (with debugging on):
2026-03-14 18:01:15.465 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 2.637 seconds (success: True)
2026-03-14 18:01:18.140 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:18.141 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:18.141 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:39.750 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:02:18.469 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 2.918 seconds (success: True)
[found-the-following-devices.txt](https://github.com/user-attachments/files/26000788/found-the-following-devices.txt)
What version of this integration has the issue?
1.4.0
What version of Home Assistant Core has the issue?
2026.03.01
Diagnostics
Diagnostics
{
"home_assistant" : {
"installation_type" : "Home Assistant OS",
"version" : "2026.3.1",
"dev" : false,
"hassio" : true,
"virtualenv" : false,
"python_version" : "3.14.2",
"docker" : true,
"arch" : "aarch64",
"timezone" : "America/Los_Angeles",
"os_name" : "Linux",
"os_version" : "6.12.47-haos-raspi",
"container_arch" : "aarch64",
"supervisor" : "2026.03.0",
"host_os" : "Home Assistant OS 17.1",
"docker_version" : "29.1.3",
"chassis" : "embedded",
"run_as_root" : true
},
"custom_components" : {
"sonoff" : {
"documentation" : "https://github.com/AlexxIT/SonoffLAN",
"version" : "3.10.2",
"requirements" : []
},
"mail_and_packages" : {
"documentation" : "https://github.com/moralmunky/Home-Assistant-Mail-And-Packages",
"version" : "0.4.7",
"requirements" : [
"beautifulsoup4",
"Pillow>=9.0",
"dateparser"
]
},
"ui_lovelace_minimalist" : {
"documentation" : "https://ui-lovelace-minimalist.github.io/UI/",
"version" : "v1.5.2",
"requirements" : [
"aiofiles>=0.8.0",
"aiogithubapi>=22.2.4"
]
},
"vesync" : {
"documentation" : "https://github.com/haext/custom_vesync",
"version" : "1.4.0",
"requirements" : [
"pyvesync==2.1.15"
]
},
"hacs" : {
"documentation" : "https://hacs.xyz/docs/use/",
"version" : "2.0.5",
"requirements" : [
"aiogithubapi>=22.10.1"
]
},
"dwains_dashboard" : {
"documentation" : "https://dwainscheeren.github.io/dwains-lovelace-dashboard/",
"version" : "3.8.0",
"requirements" : []
},
"bambu_lab" : {
"documentation" : "https://github.com/greghesp/ha-bambulab",
"version" : "2.2.20",
"requirements" : [
"beautifulsoup4"
]
},
"smartthinq_sensors" : {
"documentation" : "https://github.com/ollo69/ha-smartthinq-sensors",
"version" : "0.41.2",
"requirements" : [
"pycountry>=23.12.11",
"xmltodict>=0.13.0",
"charset_normalizer>=3.2.0"
]
},
"bhyve" : {
"documentation" : "https://github.com/sebr/bhyve-home-assistant/blob/main/README.md",
"version" : "3.3.0",
"requirements" : []
},
"alexa_media" : {
"documentation" : "https://github.com/alandtse/alexa_media_player/wiki",
"version" : "5.14.0",
"requirements" : [
"alexapy==1.29.17",
"packaging>=20.3",
"wrapt>=1.14.0",
"dictor>=0.1.12,<0.2"
]
},
"browser_mod" : {
"documentation" : "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md",
"version" : "2.9.0",
"requirements" : []
},
"watchman" : {
"documentation" : "https://github.com/dummylabs/thewatchman",
"version" : "0.8.4",
"requirements" : [
"prettytable==3.12.0"
]
},
"webrtc" : {
"documentation" : "https://github.com/AlexxIT/WebRTC",
"version" : "v3.6.1",
"requirements" : []
},
"ticktick" : {
"documentation" : "https://github.com/Hantick/ticktick-home-assistant",
"version" : "2.1.2",
"requirements" : []
},
"bubble_card_tools" : {
"documentation" : "https://github.com/Clooos/Bubble-Card-Tools",
"version" : "1.0.0",
"requirements" : []
},
"monitor_docker" : {
"documentation" : "https://github.com/ualex73/monitor_docker",
"version" : "1.18",
"requirements" : [
"aiodocker==0.22.0",
"python-dateutil==2.9.0"
]
},
"flair" : {
"documentation" : "https://github.com/RobertD502/home-assistant-flair/blob/main/README.md",
"version" : "0.2.4",
"requirements" : [
"flairaio==0.2.0"
]
},
"pi_hole_v6" : {
"documentation" : "https://github.com/bastgau/ha-pi-hole-v6",
"version" : "v1.17.0",
"requirements" : []
},
"unraid" : {
"documentation" : "https://github.com/ruaan-deysel/ha-unraid",
"version" : "2026.3.0",
"requirements" : [
"unraid-api>=1.6.0"
]
},
"average" : {
"documentation" : "https://github.com/Limych/ha-average",
"version" : "2.4.0",
"requirements" : [
"pip>=21.3.1"
]
},
"custom_icons" : {
"documentation" : "https://github.com/thomasloven/hass-custom_icons",
"version" : "1.0.1",
"requirements" : []
},
"irrigation_unlimited" : {
"documentation" : "https://github.com/rgc99/irrigation_unlimited",
"version" : "2025.12.0",
"requirements" : [
"crontab"
]
}
},
"integration_manifest" : {
"domain" : "vesync",
"name" : "VeSync",
"codeowners" : [
"markperdue",
"webdjoe",
"thegardenmonkey",
"vlebourl",
"tv4you2016",
"gdgib"
],
"config_flow" : true,
"dhcp" : [
{
"hostname" : "levoit-*",
"macaddress" : "*"
}
],
"documentation" : "https://github.com/haext/custom_vesync",
"iot_class" : "cloud_polling",
"issue_tracker" : "https://github.com/haext/custom_vesync/issues",
"loggers" : [
"pyvesync"
],
"requirements" : [
"pyvesync==2.1.15"
],
"version" : "1.4.0",
"is_built_in" : false,
"overwrites_built_in" : true
},
"setup_times" : {
"null" : {
"setup" : 0.000050425995141267776
},
"01KK72YT09K5A3BPEY2JTKRJW8" : {
"config_entry_setup" : 7.022562816273421
},
"d098f7f8e43d91ed0560870f19914e51" : {
"wait_import_platforms" : -23.03363866591826,
"config_entry_setup" : 30.459908179938793
}
},
"data" : {},
"issues" : []
}Home Assistant log
Logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 769, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/vesync/__init__.py", line 87, in async_setup_entry
hass.data[DOMAIN][config_entry.entry_id]["coordinator"] = coordinator
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
KeyError: '<redacted>'
2026-03-14 18:01:15.465 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 2.637 seconds (success: True)
2026-03-14 18:01:18.140 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:18.141 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:18.141 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:01:39.750 DEBUG (MainThread) [custom_components.vesync.config_flow] DHCP discovery detected device levoit-purifier
2026-03-14 18:02:18.469 DEBUG (MainThread) [custom_components.vesync] Finished fetching vesync data in 2.918 seconds (success: True)
[found-the-following-devices.txt](https://github.com/user-attachments/files/26000788/found-the-following-devices.txt)Additional information
No response