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

Q7 Max error on Set-up #287

Closed
tomassanjuann opened this issue May 5, 2023 · 2 comments
Closed

Q7 Max error on Set-up #287

tomassanjuann opened this issue May 5, 2023 · 2 comments

Comments

@tomassanjuann
Copy link

Version of the custom_component

Main cf7c3ec

What vacuum are you using?

Roborock Q7 Max

Describe the bug

Vacuum entities and mop selects not showing up. Only sensors showing up.

Debug log

05/05/2023 22:56:27
2023-05-05 22:56:27.765 ERROR (MainThread) [homeassistant.components.vacuum] Error adding entities for domain vacuum with platform roborock
05/05/2023 22:56:27
Traceback (most recent call last):
05/05/2023 22:56:27
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in async_add_entities
05/05/2023 22:56:27
    await asyncio.gather(*tasks)
05/05/2023 22:56:27
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 643, in _async_add_entity
05/05/2023 22:56:27
    capabilities=entity.capability_attributes,
05/05/2023 22:56:27
  File "/config/custom_components/roborock/vacuum.py", line 358, in capability_attributes
05/05/2023 22:56:27
    capability_attributes[ATTR_MOP_MODE_LIST] = self.mop_mode_list
05/05/2023 22:56:27
  File "/config/custom_components/roborock/vacuum.py", line 331, in mop_mode_list
05/05/2023 22:56:27
    return self._device_status.mop_mode.keys()
05/05/2023 22:56:27
AttributeError: 'NoneType' object has no attribute 'keys'
05/05/2023 22:56:27
2023-05-05 22:56:27.767 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up roborock platform for vacuum
05/05/2023 22:56:27
Traceback (most recent call last):
05/05/2023 22:56:27
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 312, in _async_setup_platform
05/05/2023 22:56:27
    await asyncio.gather(*pending)
05/05/2023 22:56:27
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 455, in async_add_entities
05/05/2023 22:56:27
    await asyncio.gather(*tasks)
05/05/2023 22:56:27
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 643, in _async_add_entity
05/05/2023 22:56:27
    capabilities=entity.capability_attributes,
05/05/2023 22:56:27
  File "/config/custom_components/roborock/vacuum.py", line 358, in capability_attributes
05/05/2023 22:56:27
    capability_attributes[ATTR_MOP_MODE_LIST] = self.mop_mode_list
05/05/2023 22:56:27
  File "/config/custom_components/roborock/vacuum.py", line 331, in mop_mode_list
05/05/2023 22:56:27
    return self._device_status.mop_mode.keys()
05/05/2023 22:56:27
AttributeError: 'NoneType' object has no attribute 'keys'
@Lash-L
Copy link
Collaborator

Lash-L commented May 5, 2023

This is a known issue for vacuums we don't have node information for - we already a fox in progress for it,

But you can help us and help yourself as well by answering on this issue with your mode info

#261

Edit: jk I realized you said q7 max not q7. And you were the one who answers for q7 max 🤦‍♂️ my bad

I'll take a look at it in a bit and see what's happening

@tomassanjuann
Copy link
Author

Latest main, solves this issue! Thanks devs!

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