Skip to content

Error while setting up currentcost platform for sensor / Error while adding currentcost platform entities HA 2023.9 #23

Description

@Majestic7979
2023-09-24 09:56:15.339 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.currentcost
2023-09-24 09:56:15.463 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform currentcost
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
entity.add_to_platform_start(
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 211, in add_to_platform_start
self._async_read_entity_options()
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 785, in _async_read_entity_options
registry.async_update_entity_options(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1025, in async_update_entity_options
old = self.entities[entity_id]
~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lib/python3.11/collections/__init__.py", line 1126, in __getitem__
raise KeyError(key)
KeyError: None
2023-09-24 09:56:15.494 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up currentcost platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 367, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 563, in _async_add_entity
entity.add_to_platform_start(
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 211, in add_to_platform_start
self._async_read_entity_options()
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 785, in _async_read_entity_options
registry.async_update_entity_options(
File "/usr/src/homeassistant/homeassistant/helpers/entity_registry.py", line 1025, in async_update_entity_options
old = self.entities[entity_id]
~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/local/lib/python3.11/collections/__init__.py", line 1126, in __getitem__
raise KeyError(key)
KeyError: None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions