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'
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.