-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add some hardening to the Hue discovery logic.
The first thing we do is we store the API keys in the datastore right away instead of waiting for a device record to exist. This hardens us against the situation where the driver restarts for any reason while the Hue Bridge device's `added` handler is still executing and is early enough in its execution that we haven't stored the key on the device object yet. We also address a regression from the automatic add/delete changes, which can lead to the creation of duplicate device records for bulbs in some specific circumstances.
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters