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

Missing attributes like 'RoborockMqttClient' object has no attribute 'get_networking' #674

Open
FerronN opened this issue Dec 9, 2024 · 3 comments

Comments

@FerronN
Copy link

FerronN commented Dec 9, 2024

Version of the custom_component

1.0.14

What vacuum are you using?

Roborock S8

Describe the bug

Failure during initialization. I tried moving to the core implementation. That one works, but I'm missing crucial information in that integration. I can't read the current room the vacuum is in :(

It worked fine, but after restart HASS it suddenly couldn't initialize anymore. I was running v 1.0.13, but upgrading both HACS integration and firmware version of the robot didn't make any difference.

Debug log

AttributeError: 'RoborockMqttClient' object has no attribute 'get_networking'
2024-12-09 23:38:32.889 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry <account email> for roborock
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/roborock/__init__.py", line 108, in async_setup_entry
    networking = await map_client.get_networking()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'RoborockMqttClient' object has no attribute 'get_networking'
@FerronN
Copy link
Author

FerronN commented Dec 10, 2024

I've setup a devcontainer environment and there it just works. I can't determine why this is yet.
The device_network property is missing from the config entries file within my prod environment.

So, this could point towards the problem. Putting this manually in the config entries of the prod environment doesn't make a difference unfortunately.

@FerronN
Copy link
Author

FerronN commented Dec 10, 2024

I've found the problem :)

The core roborock component uses a much newer version of python-roborock (2.70.2). This version doesn't include all methods called by the component in this repository. The requirements of this package in the core component take precedent over the the custom one, which it shouldn't. I will create a ticket in the home assistant core repo and share it.

I've not tested is this will also fix the missing device_network. Because I've copied this information into the config entries file myself.

The work around is to manually remove the pip package and install python-roborock==0.40.0. I'm using container this change will be undone whenever I restart my container. But that's doable for now. Remember to restart home assistant from the GUI after installing the correct packages.

@FerronN
Copy link
Author

FerronN commented Dec 10, 2024

@FerronN FerronN changed the title 'RoborockMqttClient' object has no attribute 'get_networking' Missing attributes like 'RoborockMqttClient' object has no attribute 'get_networking' Dec 10, 2024
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

1 participant