entrippy / OctoPrint-OctoHue

Illuminate your print job and signal its status using a Philips Hue lights.
GNU Affero General Public License v3.0
18 stars 4 forks source link

Bridge only instantiated during started, requiring a restart after bridgeaddr and username changes #28

Closed entrippy closed 4 years ago

entrippy commented 4 years ago

The instantiation for the Hue Bridge object occurs in on_after_startup() which is great and makes sense 99% of the time.

It gets awkward when users are installing octohue for the first time, and once installed and Octoprint restarted, the users need to set their settings (normal), but then need to restart again to get thebridge initialised (not normal).

I need to add a bridge reinitialisation to be triggered on settings save if there is a birdge username and address present.

entrippy commented 4 years ago

Fixed in 0.4.3