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 adding entities for domain binary_sensor with platform blueiris #1

Open
mattj415 opened this issue Dec 8, 2021 · 0 comments · May be fixed by #2
Open

Error adding entities for domain binary_sensor with platform blueiris #1

mattj415 opened this issue Dec 8, 2021 · 0 comments · May be fixed by #2
Assignees

Comments

@mattj415
Copy link
Owner

mattj415 commented Dec 8, 2021

Looks like somebody else had this and it was fixed elad-bar#100
I'm still seeing it though. Full error stack:

Traceback (most recent call last):
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
   await asyncio.gather(*tasks)
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 607, in _async_add_entity
   await entity.add_to_platform_finish()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 714, in add_to_platform_finish
   await self.async_added_to_hass()
 File "/config/custom_components/blueiris/models/base_entity.py", line 102, in async_added_to_hass
   await self.async_added_to_hass_local()
 File "/config/custom_components/blueiris/binary_sensors/main.py", line 52, in async_added_to_hass_local
   self.remove_subscription = await async_subscribe(
 File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 356, in async_subscribe
   async_remove = await hass.data[DATA_MQTT].async_subscribe(
KeyError: 'mqtt'
2021-12-07 22:06:22 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
   await asyncio.gather(*tasks)
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 607, in _async_add_entity
   await entity.add_to_platform_finish()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 714, in add_to_platform_finish
   await self.async_added_to_hass()
 File "/config/custom_components/blueiris/models/base_entity.py", line 102, in async_added_to_hass
   await self.async_added_to_hass_local()
 File "/config/custom_components/blueiris/binary_sensors/main.py", line 52, in async_added_to_hass_local
   self.remove_subscription = await async_subscribe(
 File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 356, in async_subscribe
   async_remove = await hass.data[DATA_MQTT].async_subscribe(
KeyError: 'mqtt'```
@mattj415 mattj415 self-assigned this Dec 8, 2021
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

Successfully merging a pull request may close this issue.

1 participant