Commit graph

94 commits

Author SHA1 Message Date
Marc Mueller
bee53f6004
Add decorator typing [yeelight] (#107598) 2024-01-16 23:18:30 +01:00
Daniel Rheinbay
135570acab
Add tea time effect to Yeelight (#95936) 2023-10-03 14:53:01 +02:00
Joost Lekkerkerker
732dac6f05
Create abstraction for Generic YeeLight (#97939)
* Create abstraction for Generic YeeLight

* Update light.py
2023-08-16 13:24:41 +02:00
Joost Lekkerkerker
c7b7ca8769
Add yeelight class to fix superclass issue (#97649)
* Add device naming to Yeelight

* Add extra light entity to fix superclass

* Add extra light entity to fix superclass
2023-08-05 22:36:45 +02:00
Joost Lekkerkerker
357bfc46bf
Revert "Add device naming to Yeelight" (#97647)
Revert "Add device naming to Yeelight (#97639)"

This reverts commit 82f27115f5.
2023-08-03 09:13:23 +02:00
Joost Lekkerkerker
82f27115f5
Add device naming to Yeelight (#97639) 2023-08-02 23:48:37 +02:00
Joost Lekkerkerker
daa76bbab6
Migrate Yeelight to has entity naming (#96836) 2023-07-24 09:39:48 +02:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 (#88210)
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
epenet
7f1e1ed1d8
Enforce LightEntityFeature (#82460) 2022-11-22 07:14:47 +01:00
epenet
66b742f110
Improve type hints in yeelight lights (#76018)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-08-11 12:41:24 +02:00
epenet
11a19c2612
Improve type hints in light [s-z] (#75946) 2022-07-31 13:50:24 +02:00
epenet
5d8b35face
Use light enums in yeelight (#70797) 2022-04-26 14:55:44 +02:00
epenet
1179a88808
Use ColorMode enum in yeelight (#70560) 2022-04-23 11:04:54 -10:00
epenet
9231819532
Add type hints to yeelight (#69213) 2022-04-04 10:58:44 +02:00
Alex Yao
29e8b9f2ac
Bump Yeelight to v0.7.10 (#69147) 2022-04-04 09:47:44 +02:00
Alex Yao
88309a26b7
Fix Yeelight Music Mode Rate Limits (#64891) 2022-02-06 15:34:27 -06:00
epenet
ecb921949a
Add setup type hints [v-y] (#63614)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-07 16:30:01 +01:00
J. Nick Koston
881d35ab17
Split up yeelight code into multiple files (#59990) 2021-11-23 11:56:07 -06:00
starkillerOG
2b7bcd6aeb
Yeelight disable polling (#59885)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-19 09:02:07 -06:00
starkillerOG
05eb2f3e5c
Yeelight add state check to set_mode service (#59884) 2021-11-18 15:52:57 -06:00
Marc Mueller
72801867d6
Use assignment expressions 38 (#58828) 2021-10-31 18:49:18 +01:00
J. Nick Koston
faecc90b38
Workaround brightness transition delay from off in older yeelight models (#58774) 2021-10-31 16:11:07 +01:00
Erik Montnemery
56f746fd39
Coerce to tuple before asserting the sequence (#58672) 2021-10-30 16:50:24 +02:00
J. Nick Koston
4653d0b079
Retry yeelight setup later if first update fails (#58446) 2021-10-27 10:09:45 +02:00
Marc Mueller
62c20860ac
Use assignment expressions 22 (#57971) 2021-10-21 08:33:10 +02:00
J. Nick Koston
fb5d117df4
Always send color/temp when switching from an effect in yeelight (#57745) 2021-10-15 09:37:23 -07:00
J. Nick Koston
427f2a085b
Reconnect and retry yeelight commands after previous wifi drop out (#57741) 2021-10-15 09:37:13 -07:00
J. Nick Koston
a58085639e
Restore yeelight workaround for failing to update state after on/off (#57400) 2021-10-10 00:01:45 -07:00
J. Nick Koston
1aeab65f56
Fix yeelight state when controlled outside of Home Assistant (#56964) 2021-10-03 00:08:31 -07:00
J. Nick Koston
23cbd9075a
Wait for yeelight internal state to change before update after on/off (#56795) 2021-09-29 13:49:33 -05:00
J. Nick Koston
9e2a29dc37
Improve yeelight stability by moving timeout handling to upstream library (#56432) 2021-09-20 12:32:01 -05:00
J. Nick Koston
bad6b2f7f5
Standardize yeelight exception handling (#56362) 2021-09-17 22:25:19 -07: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
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
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
Marc Mueller
1dc25a5864
Bump python-typing-update to 0.3.2 (#48303)
* Bump python-version-update to 0.3.2
* Changes after update
* Fix pylint issues
2021-03-25 21:09:06 +01:00
Erik Montnemery
1fc8e32d86
Update integrations t-z to override extra_state_attributes() (#47760) 2021-03-11 20:16:26 +01:00
tkdrob
add0d9d3eb
Use core constants for yeelight (#46552) 2021-02-16 09:00:09 -05:00
Xiaonan Shen
daa9449f18
Fix yeelight brightness in music mode (#45358) 2021-01-21 08:54:24 +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
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
springstan
92379ad8d2
Use list literal without using dict.keys() (#42573) 2020-10-30 09:19:13 -05: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