Skip to content

Service netdaemon.entity_remove fails #58

@a-kildahl

Description

@a-kildahl

The problem

Calls to the service netdaemon.entity_remove fails.

System health

This doesn't exists anymore, or I can't find it

Traceback/Error logs

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1957, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 1997, in _execute_service
    return await cast(
           ^^^^^^^^^^^
  File "/config/custom_components/netdaemon/__init__.py", line 141, in entity_remove
    await client.entity_remove(call.data)
  File "/config/custom_components/netdaemon/client.py", line 79, in entity_remove
    await entity_registry.async_get_registry(self.hass)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'homeassistant.helpers.entity_registry' has no attribute 'async_get_registry'

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions