andersevenrud / ha-nexa-bridge-x

Home Assistant - Nexa Bridge X Integration
Other
9 stars 3 forks source link

Discover new devices without reloading integration #1

Closed andersevenrud closed 1 year ago

andersevenrud commented 1 year ago

Haven't tested this yet, but I assume that the integration setup only runs once which is where discovery occurs.

After this it basically has to crash or be reloaded manually (or a restart of HA).

If HA provides a way to register entities after startup it would be nice if devices were added on poll.

andersevenrud commented 1 year ago

In hindsight just reloading is the way to go. If devices were discovered while running it could lead to all sorts of problems when a user is setting things up and organizing (like changing names, etc.).