1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-06 23:19:18 +00:00

16 Commits

Author SHA1 Message Date
Marc Mueller
ff3a801936
Add empty line after module docstring [a-d] () 2024-03-08 14:51:32 +01:00
Erik Montnemery
3086d24231
Add back supported_color_modes property to blebox light () 2024-02-12 19:59:04 +01:00
Franck Nijhof
b0cee0bc46
String formatting and max line length - Part 1 ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-12-22 10:12:50 +01:00
epenet
374d46ec09
Improve type hints in blebox ()
* Add generics to blebox

* Remove walrus

* Move logic into each platform

* Code style

* Apply suggestion
2022-10-19 17:49:40 +02:00
epenet
61af82223f
Improve type hint in blebox light entity ()
* Improve type hint in blebox light entity

* Adjust

* Adjust supported_features

* Adjust effect_list property

* Improve base class
2022-08-19 10:58:51 +02:00
epenet
dedf063e43
Improve entity type hints [b] () 2022-08-19 09:54:13 +02:00
Michał Huryn
169264db66
Fix Blebox light scenes ()
* Bug fix for light platform, when async_turn_on recieves multiple keys.

* Changes according to @MartinHjelmare suggestion.

* Moved effect set call in BleBoxLightEntity.async_turn_on method.

* Added tests for effect in light platform. Added ValueError raise if effect not in effect list.

* Removed duplicated line from test as @MartinHjelmare suggested.
2022-07-14 11:21:01 +02:00
Michał Huryn
e7e940afa5
Address Blebox uniapi review sidenotes ()
* Changes accordingly to sidenotes given by @MartinHjelmare in pull .

* Mini version bump according to notes in pull .

* Error message fix, test adjustment.
2022-07-03 17:06:38 +02:00
Michał Huryn
b5af96e4bb
Bump blebox_uniapi to 2.0.0 and adapt integration () 2022-06-29 11:57:55 +02:00
epenet
643d04a717
Use ColorMode enum in blebox () 2022-04-22 19:49:39 -10:00
epenet
7f9b7c7b0e
Add light setup type hints [a-i] ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 15:02:21 +01:00
Marc Mueller
5048bad050
Use assignment expressions 05 () 2021-10-17 19:56:00 +02:00
Robert Hillis
9b2107b71f
Use entity class attributes for Blebox ()
* Use entity class attributes for blebox

* rework

* Apply suggestions from code review

Co-authored-by: Franck Nijhof <git@frenck.dev>

Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-07-12 22:52:38 +02:00
Erik Montnemery
2583e4bdc9
Add support for RGBW color to blebox light () 2021-05-24 12:24:07 +02:00
gadgetmobile
93fddbed2b
Fix review requests for BleBox support from ()
* fix review requests from 

* fix pylint W0621 (redefined-outer-name)
2020-05-18 22:30:15 +02:00
gadgetmobile
902eb187ef
Add Blebox lights support ()
* add BleBox lights support

* cherry pick refactoring from 

* Inherit from LightEntity instead of Light

Co-authored-by: J. Nick Koston <nick@koston.org>

* import LightEntity instead of Light

Co-authored-by: J. Nick Koston <nick@koston.org>

Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-17 18:54:32 -05:00