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

Request for support for dreame.vacuum.r2489a #782

Open
shyoo0000 opened this issue Nov 5, 2024 · 0 comments
Open

Request for support for dreame.vacuum.r2489a #782

shyoo0000 opened this issue Nov 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@shyoo0000
Copy link

I would appreciate it if you could add dreame.vacuum.r2489a to the new support device.

and I using it by adding it manually on config_flow.py, but following error log is showing.

로거: homeassistant
소스: custom_components/dreame_vacuum/dreame/device.py:7034
통합구성요소: Dreame Vacuum (관련 문서, 문제)
처음 발생: 2024년 11월 3일 오후 6:45:53 (18 발생)
마지막 로그인: 오전 2:02:00

Error doing job: Exception in callback DreameVacuumDataUpdateCoordinator.async_set_updated_data(None) (None)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/config/custom_components/dreame_vacuum/coordinator.py", line 493, in async_set_updated_data
    super().async_set_updated_data(self._device)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 517, in async_set_updated_data
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 176, in async_update_listeners
    update_callback()
  File "/config/custom_components/dreame_vacuum/entity.py", line 151, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
    self.__async_calculate_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1073, in __async_calculate_state
    if extra_state_attributes := self.extra_state_attributes:
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/entity.py", line 211, in extra_state_attributes
    attrs = self.entity_description.attrs_fn(self.device)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/sensor.py", line 383, in <lambda>
    attrs_fn=lambda device: device.status.cleaning_history,
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/dreame/device.py", line 7034, in cleaning_history
    k: v.name.replace("_", " ").capitalize() for k, v in history.neglected_segments.items()
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'items'
@shyoo0000 shyoo0000 added the enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant