Files
home-assistant-core/homeassistant/components/light
Andrea Campi 81974885ee Refactor hue to split bridge support from light platform (#10691)
* Introduce a new Hue component that knows how to talk to a Hue bridge, but doesn't actually set up lights.

* Refactor the hue lights platform to use the HueBridge class from the hue component.

* Reimplement support for multiple bridges

* Auto discover bridges.

* Provide some migration support by showing a persistent notification.

* Address most feedback from code review.

* Call load_platform from inside HueBridge.setup passing the bridge id.

Not only this looks nicer, but it also nicely solves additional bridges being added after initial setup (e.g. pairing a second bridge should work now, I believe it required a restart before).

* Add a unit test for hue_activate_scene

* Address feedback from code review.

* After feedback from @andrey-git I was able to find a way to not import phue in tests, yay!

* Inject a mock phue in a couple of places
2017-12-10 10:15:01 -08:00
..
2017-12-05 09:44:22 +01:00
2017-07-06 23:20:39 -07:00
2017-09-22 10:39:53 +02:00
2017-11-23 13:10:23 +01:00
2017-09-23 17:15:46 +02:00
2017-04-30 20:10:08 -07:00
2017-12-08 08:43:37 -08:00
2017-12-08 09:18:52 -08:00
2017-10-05 21:55:09 +02:00
2017-07-11 21:22:00 +02:00
2017-05-02 21:21:37 -07:00
2017-05-02 09:18:47 -07:00
2017-08-29 16:22:28 +02:00
2017-05-02 09:18:47 -07:00
2017-10-08 20:14:39 +02:00
2017-05-02 09:18:47 -07:00
2017-11-01 14:20:29 +01:00
2017-05-02 09:18:47 -07:00
2017-10-18 21:52:44 -07:00
2017-12-06 12:44:41 +01:00
2017-07-26 14:03:29 +02:00
2017-12-07 07:47:19 +01:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-09-14 18:49:03 -04:00
2017-05-02 09:18:47 -07:00
…