Erik Montnemery
7dbe8070f7
Mock out network.util.async_get_source_ip in tests ( #55592 )
2021-09-02 20:44:50 +02:00
J. Nick Koston
10fa63775d
Ensure yeelights resync state if they are busy on first connect ( #55333 )
2021-08-27 12:43:53 -05:00
J. Nick Koston
c3972b22fd
Fix yeelight brightness when nightlight switch is disabled ( #55278 )
2021-08-26 15:18:36 -05:00
J. Nick Koston
ae1d2926cf
Fix some yeelights showing wrong state after on/off ( #55279 )
2021-08-26 13:25:26 -05:00
J. Nick Koston
089dfad78a
Ensure yeelight model is set in the config entry ( #55281 )
...
* Ensure yeelight model is set in the config entry
- If the model was not set in the config entry the light could
be sent commands it could not handle
* update tests
* fix test
2021-08-26 13:02:59 -05:00
J. Nick Koston
e6e8d7eded
Convert color temperature to visible color in lights ( #55219 )
2021-08-25 21:56:36 +02:00
J. Nick Koston
b71f2689d7
Make yeelight aware of the network integration ( #54854 )
2021-08-20 19:09:22 -05:00
J. Nick Koston
3cb7227040
Normalize the display name of yeelight devices ( #54883 )
...
Co-authored-by: Teemu R. <tpr@iki.fi>
2021-08-20 14:32:48 -07:00
J. Nick Koston
8103d9ae3c
Add missing id to yeelights that were setup manually ( #54855 )
2021-08-19 08:46:14 -05:00
J. Nick Koston
e7a0604a40
Make yeelight discovery async ( #54711 )
2021-08-18 09:36:13 -07:00
J. Nick Koston
4ae6435a64
Avoid increasing yeelight rate limit when the state is already set ( #54410 )
2021-08-10 15:17:49 -07:00
starkillerOG
a23da30c29
Yeelight local push updates ( #51160 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-08-09 13:33:34 -05:00
Erik Montnemery
dad7a597ae
Add color_mode support to yeelight light ( #51973 )
...
* Add color_mode support to yeelight light
* Satisfy pylint
* Address review comment
* Improve test coverage
* Improve test coverage
2021-06-25 17:37:15 +02:00
Daniel Rheinbay
3c452f8c9b
Refactor yeelight integration to use only flows ( #51255 )
...
* Refactor light.py to use only flows.py, eliminating transitions.py
* Reformat yeelight source code using black
2021-06-01 09:04:49 +02:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* Change config entry state to an enum
* Allow but deprecate EntryState str equality comparison
* Test fixes
* Rename to ConfigEntryState
* Remove str comparability backcompat
* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Paulus Schoutsen
aef24a807e
Yeelight: Do not log errors when cannot connect ( #50592 )
2021-05-13 22:33:18 -07:00
J. Nick Koston
c037ebb27c
Add discovery to yeelight ( #50385 )
2021-05-11 19:55:50 -05:00
Erik Montnemery
5f2326fb57
Add support for light color modes ( #47720 )
...
* Add support for light color modes
* Update tests
* Update comments
* Fix bugs, add tests
* Suppress lint errors
* Don't suppress brightness when state is ambiguous
* Improve reproduce_state + add tests
* Add comment
* Change COLOR_MODE_* constants, rename COLOR_MODE_DIMMER to COLOR_MODE_BRIGHTNESS
* Fix tests
* Tweaks
2021-03-16 12:51:39 +01:00
Erik Montnemery
b3fecb1c95
Update tests t-z to use async_get() instead of async_get_registry() ( #47655 )
2021-03-09 14:25:03 +01:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
tkdrob
add0d9d3eb
Use core constants for yeelight ( #46552 )
2021-02-16 09:00:09 -05:00
Paulus Schoutsen
9e07910ab0
Mark entities as unavailable when they are removed but are still registered ( #45528 )
...
* Mark entities as unavailable when they are removed but are still registered
* Add sync_entity_lifecycle to collection helper
* Remove debug print
* Lint
* Fix tests
* Fix tests
* Update zha
* Update zone
* Fix tests
* Update hyperion
* Update rfxtrx
* Fix tests
* Pass force_remove=True from integrations
Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
zewelor
16ddbb95f4
Add yeelight service to enable disable music mode ( #44533 )
...
* Add service to enable / disable music mode
* Black reformat
* Update test
* Fix tests
* Revert consts cleanup
* Use entity method as service call
* Use ATTR for service call
* Sort
* Add tests
* Fix isort
* Fix print
* Black
2020-12-30 17:00:28 +01:00
zewelor
e09234ffae
Fix yeelight unavailbility ( #44061 )
2020-12-10 09:54:10 +01:00
Daniel Rheinbay
498654a1e0
Add vendor effects to Yeelight integration ( #42711 )
...
Add effects shipped by Yeelight in their apps, as these effects are quite popular and have been missing from Home Assistant.
2020-11-22 21:41:09 +01:00
Xiaonan Shen
f499187835
Fix yeelight binary sensor unique ID ( #42562 )
2020-11-09 08:32:21 +01:00
Xiaonan Shen
f23fcfcd9b
Fix yeelight connection issue ( #40251 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-27 14:47:11 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Xiaonan Shen
7b3182fa8f
Improve Yeelight code ( #39543 )
...
* Rename ipaddr to ip_addr
* Move custom services to entity services
* Remove platform data
* Change service setup to callback
* Rename ip_addr to host
* Use _host inside class
2020-09-02 18:42:12 +02:00
Xiaonan Shen
45a927ffb2
Add config flow to yeelight ( #37191 )
2020-08-31 16:40:56 +02:00
Xiaonan Shen
e8b6ed5a27
Add platform tests to yeelight ( #37745 )
...
* Add platform tests to yeelight
* Update requirements
* Break long string
2020-08-02 16:37:31 +02:00