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

Error while setting up spook platform for sensor #429

Closed
Anto79-ops opened this issue Oct 25, 2023 · 1 comment
Closed

Error while setting up spook platform for sensor #429

Anto79-ops opened this issue Oct 25, 2023 · 1 comment

Comments

@Anto79-ops
Copy link

What version of Spook are you using?

1.31

What version of Home Assistant are you using?

2023.11.0b0

The problem

Hi,

Updated to to HA Core beta and all diagnostic entities become unavailable in Spook with this in the logs:

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:359
Integration: Sensor (documentation, issues)
First occurred: 1:36:16 PM (1 occurrences)
Last logged: 1:36:16 PM

Error while setting up spook platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/spook/sensor.py", line 22, in async_setup_entry
    await async_forward_platform_entry_setups_to_ectoplasm(
  File "/config/custom_components/spook/util.py", line 32, in async_forward_platform_entry_setups_to_ectoplasm
    module = importlib.import_module(f".{module_path}", __package__)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/spook/ectoplasms/homeassistant/sensor.py", line 380, in <module>
    persistent_notification.EVENT_PERSISTENT_NOTIFICATIONS_UPDATED,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.components.persistent_notification' has no attribute 'EVENT_PERSISTENT_NOTIFICATIONS_UPDATED'

thanks for the integration!

Anything in the logs? Paste it here!

No response

@frenck
Copy link
Owner

frenck commented Oct 25, 2023

duplicate of #425

@frenck frenck closed this as not planned Won't fix, can't repro, duplicate, stale Oct 25, 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