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

Roborock S8 - Main branch - Setup error #297

Closed
stickpin opened this issue May 9, 2023 · 3 comments
Closed

Roborock S8 - Main branch - Setup error #297

stickpin opened this issue May 9, 2023 · 3 comments

Comments

@stickpin
Copy link

stickpin commented May 9, 2023

Version of the custom_component

Main Branch

What vacuum are you using?

Roborock S8

Describe the bug

Not able to setup the using the main branch, where v0.1.2 is working fine.
Any suggestion?

Debug log


2023-05-09 10:53:38.392 ERROR (MainThread) [custom_components.roborock.coordinator] Unexpected error fetching roborock data: 'roborock.vacuum.a51'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/roborock/coordinator.py", line 98, in _async_update_data
    await self.fill_device_info(self.device_info)
  File "/config/custom_components/roborock/coordinator.py", line 87, in fill_device_info
    await asyncio.gather(
  File "/config/custom_components/roborock/coordinator.py", line 78, in fill_device_prop
    device_prop = await self.api.get_prop()
  File "/usr/local/lib/python3.10/site-packages/roborock/api.py", line 333, in get_prop
    [status, dnd_timer, clean_summary, consumable] = await asyncio.gather(
  File "/usr/local/lib/python3.10/site-packages/roborock/api.py", line 230, in get_status
    _cls: Type[Status] = ModelStatus[self.device_info.model]
KeyError: 'roborock.vacuum.a51'
2023-05-09 10:53:48.994 INFO (MainThread) [roborock.local_api] Connecting to 10.10.10.122
2023-05-09 10:53:49.002 INFO (MainThread) [roborock.local_api] Connected to 10.10.10.122
2023-05-09 10:53:49.018 ERROR (MainThread) [custom_components.roborock.coordinator] Unexpected error fetching roborock data: 'roborock.vacuum.a51'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/roborock/coordinator.py", line 98, in _async_update_data
    await self.fill_device_info(self.device_info)
  File "/config/custom_components/roborock/coordinator.py", line 87, in fill_device_info
    await asyncio.gather(
  File "/config/custom_components/roborock/coordinator.py", line 78, in fill_device_prop
    device_prop = await self.api.get_prop()
  File "/usr/local/lib/python3.10/site-packages/roborock/api.py", line 333, in get_prop
    [status, dnd_timer, clean_summary, consumable] = await asyncio.gather(
  File "/usr/local/lib/python3.10/site-packages/roborock/api.py", line 230, in get_status
    _cls: Type[Status] = ModelStatus[self.device_info.model]
KeyError: 'roborock.vacuum.a51'

@Lash-L
Copy link
Collaborator

Lash-L commented May 9, 2023

Fill this out

#261

@stickpin
Copy link
Author

stickpin commented May 9, 2023

@Lash-L done. :)
Please, let me know if you need more info.

@stickpin
Copy link
Author

stickpin commented May 9, 2023

Fixed with https://github.com/humbertogontijo/python-roborock/releases/tag/v0.14.1

Thanks @Lash-L!

@stickpin stickpin closed this as completed May 9, 2023
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