Open nemec opened 2 years ago
Ok, so I did some testing on my main instance by commenting out the async_subscribe
and it also solves my issue with #85. I don't know exactly what's happened, but it seems like the exception causes the internal EntityManager database to get out of sync with what's actually in Home Assistant, causing the BI plugin to try adding the entity a second time.
@nemec That is very promising!
So I'm getting the following error every time I boot Home Assistant and it seems to stem from the binary sensor of this project calling the
async_subscribe
method ofhomeassistant.components.mqtt
. I do not have MQTT installed/enabled. The error happens within Home Assistant code, but if you can detect that MQTT is not enabled (I'm not sure how to do this TBH), maybe this code can avoid trying to subscribe?This is on Ubuntu 22.04 with a brand new Home Assistant install (via git/virtualenv). ha-blueiris is installed in custom_components folder with default settings (though I see the same in my main HA instance installed via HACS) ETA: running Python 3.10