Files
core/tests/components
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-11-27 10:09:17 +01:00
2017-11-05 13:51:52 +01:00
2017-11-05 13:51:52 +01:00
2017-11-05 18:42:31 -08:00
2017-06-17 10:03:49 -07:00
2017-07-31 20:52:39 -07:00
2017-11-11 22:24:43 +02:00
2017-12-01 15:49:56 +01:00
2016-03-09 10:25:50 +01:00
2017-11-20 20:26:36 -08:00
2017-07-21 21:38:53 -07:00
2017-05-12 20:14:17 -07:00
2017-09-24 15:48:45 -07:00
2017-11-14 22:39:06 -08:00
2017-09-23 17:15:46 +02:00
2017-09-08 21:19:49 -07:00
2017-10-24 19:36:27 -07:00
2017-10-27 10:15:47 +02:00
2017-11-03 10:28:31 +01:00
2017-03-30 00:50:53 -07:00
2017-11-11 22:24:43 +02:00