dreame-vacuum: Integartion fails to start with HA 2023.11

Describe the bug After upgrading to HA 2023.11.0b0, the integration fails to start. It still works on HA 2023.10.5.

To Reproduce Upgrade to HA 2023.11.0b0

Expected behavior The integration should be able to start after the upgrade.

Screenshots N/A

Additional Information (please complete the following information)

  • Model Name [e.g. dreame.vacuum.p2028]: dreame.vacuum.r2228o
  • Firmware Version [e.g. 1156]: 1.3.3_2303
  • Home Assistant Version: 2023.11.0b0
  • Configuration Type [With or without map support]: With map support
  • Errors or warnings shown in the HA logs (if applicable):
Logger: homeassistant.config_entries
Source: config_entries.py:399
First occurred: 2:13:35 PM (1 occurrences)
Last logged: 2:13:35 PM

Error setting up entry DreameBot L10s Ultra for dreame_vacuum
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 399, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/__init__.py", line 22, in async_setup_entry
    coordinator = DreameVacuumDataUpdateCoordinator(hass, entry=entry)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dreame_vacuum/coordinator.py", line 125, in __init__
    persistent_notification.EVENT_PERSISTENT_NOTIFICATIONS_UPDATED,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.components.persistent_notification' has no attribute 'EVENT_PERSISTENT_NOTIFICATIONS_UPDATED'

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 21
  • Comments: 34 (5 by maintainers)

Commits related to this issue

Most upvoted comments

guys, all you need to do is to rename EVENT_PERSISTENT_NOTIFICATIONS_UPDATED to SIGNAL_PERSISTENT_NOTIFICATIONS_UPDATED in the /config/custom_components/dreame_vacuum/coordinator.py

I found it was rename in the HA

I encourage everyone to switch to the Beta version.

https://hacs.xyz/docs/faq/beta/

Use beta v2.0.0b6

Same to me

guys, all you need to do is to rename EVENT_PERSISTENT_NOTIFICATIONS_UPDATED to SIGNAL_PERSISTENT_NOTIFICATIONS_UPDATED in the /config/custom_components/dreame_vacuum/coordinator.py

I found it was rename in the HA

Confirmed, working with this change.

Same to me too 😉

Ahh found the problem myself and fixed it… it’s working now 😃 Thanks for helping!

Would you mind to mention what it was? This is not helpful for other people referencing this issue.

Ahh found the problem myself and fixed it… it’s working now 😃 Thanks for helping!

v2.0.0b6 is working. When will the “official” version be released? HA 2023.11.0 will be releasing on Wed (11/1)