-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Support for Xiaomi Vacuum X20 Pro #579
Comments
Duplicate of #580 |
@PiotrMachowski, I believe it's not a duplicate, as with the latest version 2.2.3, the map is not showing. |
The error you have attached was a duplicate of linked issue. Was it working before? |
No, it hasn't worked at any point. |
Can you try checking if any option for |
I did test that. And re-tested again, just now, with the latest version. With a restart in between. Not sure if it's related, but I do see an error in the logs.
|
Checklist
piotr.machowski.dev [at] gmail.com
(Retrieving map; please provide your GitHub username in the email)What vacuum model do you want to be supported?
xiaomi.vacuum.d102gl
What is its name?
Xiaomi Vacuum X20 Pro
Available APIs
Errors shown in the HA logs (if applicable)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1320, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi_cloud_map_extractor/camera.py", line 279, in update
self._handle_device()
~~~~~~~~~~~~~~~~~~~^^
File "/config/custom_components/xiaomi_cloud_map_extractor/camera.py", line 315, in _handle_device
country, user_id, device_id, model = self._connector.get_device_details(self._vacuum.token, self._country)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py", line 217, in get_device_details
if match := next(matching_token, None):
~~~~^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py", line 208, in get_devices_iter
for home in homes:
^^^^^
File "/config/custom_components/xiaomi_cloud_map_extractor/common/xiaomi_cloud_connector.py", line 169, in get_homes_iter
if homelist := response["result"]["share_home_list"]:
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'share_home_list'
Other info
No response
The text was updated successfully, but these errors were encountered: