Avi Miller
74cfdc6c1f
Add identify and restart button entities to the LIFX integration ( #75568 )
2022-08-06 17:28:30 -10:00
J. Nick Koston
1354952977
Migrate LIFX to config entry per device ( #74316 )
2022-07-18 17:56:34 -05:00
Avi Miller
a0974e0c72
Refactor LIFX discovery to prevent duplicate discovery response handling ( #72213 )
...
* Partially revert #70458 and allow duplicate LIFX discoveries
Signed-off-by: Avi Miller <me@dje.li>
* Only process one discovery at a time
* Revert all LIFX duplicate/inflight discovery checks
Also remember LIFX Switches and do as little processing for them
as possible.
Signed-off-by: Avi Miller <me@dje.li>
* Bump aiolifx version to support the latest LIFX devices
LIFX added 22 new product definitions to their public product
list at the end of January and those new products are defined in
aiolifx v0.8.1, so bump the dependency version.
Also switched to testing for relays instead of maintaining a
seperate list of switch product IDs.
Fixes #72894 .
Signed-off-by: Avi Miller <me@dje.li>
* Refactor LIFX discovery to better handle duplicate responses
Signed-off-by: Avi Miller <me@dje.li>
* Update clear_inflight_discovery with review suggestion
Signed-off-by: Avi Miller <me@dje.li>
* Move the existing entity check to before the asyncio lock
Signed-off-by: Avi Miller <me@dje.li>
* Bail out of discovery early and if an entity was created
Also ensure that the entity always has a unique ID even if the bulb was
not successfully discovered.
Signed-off-by: Avi Miller <me@dje.li>
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-12 20:05:41 -10:00
Avi Miller
f5c6ad24c4
Bump aiolifx to 0.8.1 ( #72897 )
...
Bump aiolifx version to support the latest LIFX devices
LIFX added 22 new product definitions to their public product
list at the end of January and those new products are defined in
aiolifx v0.8.1, so bump the dependency version.
Also switched to testing for relays instead of maintaining a
seperate list of switch product IDs.
Fixes #72894 .
Signed-off-by: Avi Miller <me@dje.li>
2022-06-03 08:09:00 +02:00
Avi Miller
f487c04e02
Remove LIFX bulb discovery from the inflight list if it fails to connect ( #71673 )
...
Remove the bulb discovery from the inflight list if it fails to connect
Signed-off-by: Avi Miller <me@dje.li>
2022-05-13 13:30:44 +02:00
Erik Montnemery
59c6282c6c
Migrate lifx light to color_mode ( #69420 )
...
* Migrate lifx light to color_mode
* Update LIFXColor to support both hs and color_temp
* Apply suggestions from code review
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update light.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-04-28 09:49:06 +02:00
Avi Miller
f593b387a4
Refactor LIFX discovery to make it faster and more reliable ( #70458 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-26 08:58:01 -10:00
Anders Melchiorsen
480d9d63ee
LIFX device cleanup cleanup ( #68937 )
2022-04-01 11:40:29 +03:00
Avi Miller
9ea73e0d90
Skip unsupported LIFX Switches during discovery ( #67726 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-03-17 19:13:08 +01:00
Anders Melchiorsen
9e0926f943
Remove LIFX devices with no entities ( #65964 )
2022-02-07 08:19:32 +01:00
epenet
5140c1fa6a
Remove invalid return values in setup methods [i-p] ( #63363 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-04 11:30:13 +01:00
epenet
8cc0df7b72
Ensure service calls are typed [k-n] ( #62917 )
...
* Ensure service calls are typed [k-n]
* Ensure service calls are typed in mazda
* Adjust mazda
* Add mazda comment
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 14:33:08 +01:00
Erik Montnemery
56f746fd39
Coerce to tuple before asserting the sequence ( #58672 )
2021-10-30 16:50:24 +02:00
Avi Miller
0c2f126012
Return the real MAC address for LIFX bulbs with newer firmware ( #58511 )
2021-10-28 18:27:40 +02:00
Robert Hillis
f2a5c4602e
Use DeviceInfo Class L-M ( #58312 )
2021-10-25 23:26:40 +02:00
Marc Mueller
9561c51276
Use assignment expressions 16 ( #57962 )
2021-10-18 19:36:35 -07:00
Marc Mueller
4f8148f9ea
Use assignment expressions 07 ( #57787 )
2021-10-17 20:24:34 +02:00
J. Nick Koston
176fd39e0b
Fix lifx model to be a string ( #55309 )
...
Fixes #55307
2021-08-27 06:37:28 +02:00
Marc Mueller
f6b162bc39
Add pylint CodeStyle extension ( #53147 )
2021-07-19 06:57:06 -07:00
Franck Nijhof
2ed386f9e6
Migrate to async_get_current_platform everywhere ( #50034 )
2021-05-03 09:34:28 -07:00
Anders Melchiorsen
21872c42fe
Fix color setting in LIFX services ( #49822 )
2021-04-28 13:31:40 -07:00
Franck Nijhof
d1afef843b
Deprecate LIFX Legacy integration ( #47235 )
2021-03-01 16:34:14 -08:00
Ellis Michael
8b97f62a8e
Allow LIFX bulbs to fade color even when off ( #46596 )
...
LIFX bulbs have the capability to fade their color attributes even while the bulb is off. When the bulb is later turned on, the fade will continue as if the bulb was on all along.
2021-02-18 18:40:16 +01:00
Paulus Schoutsen
5dac3883b0
Stub light profiles ( #42232 )
2020-10-23 16:28:21 +02:00
Matthias Alphart
93a9a11065
Add config validator helper positive_float ( #41640 )
2020-10-11 22:04:49 +02:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop ( #37527 )
2020-07-05 23:04:19 +02:00
Franck Nijhof
f42eb0d5ca
Fix missing service call context in multiple locations ( #37094 )
2020-06-25 17:09:52 -07:00
J. Nick Koston
f085fb1499
Set lifx device sw_version ( #35739 )
...
This change solves an issue where homekit would
think the firmware was out of date on the bulb
because no version was set.
2020-05-17 16:16:09 -05:00
Erik Montnemery
e4333a7a44
Rename Light to LightEntity ( #34593 )
2020-04-26 18:49:41 +02:00
Anders Melchiorsen
0d999649c0
Support contemporary entity selectors for LIFX services ( #33062 )
...
* Support contemporary entity selectors for LIFX services
* Use async_register_entity_service() for lifx.set_state
* Call directly
2020-04-16 18:16:14 +02:00
Paulus Schoutsen
aef06a3544
Directly call write state 2 ( #33513 )
...
* Directly call async_write_ha_state pt2
* Directly call async_write_ha_state pt2
* Fix mock
* Address comments
2020-04-03 09:34:50 +02:00
Paulus Schoutsen
f41623ca64
Log warning when entities referenced in service call not found ( #31427 )
...
* Raise entities not found error
* Make it a warning, not an error
* Add support for MATCH_ENTITY_NONE
* Fix lint
* Fix tests
2020-02-04 14:42:07 -08:00
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Anders Melchiorsen
2cb92c66ef
Support entity_id: all in lifx.set_state ( #29919 )
2019-12-14 07:36:33 +01:00
Paulus Schoutsen
02d9ed5e36
Do not select all entities when omitting entity ID in service call ( #29178 )
...
* Do not select all entities when omitting entity ID
* Address comments Matthew
* Require either area_id or entity_id
* Fix tests
* Fix test
2019-12-02 16:23:12 -08:00
Raman Gupta
1f13809c6d
Update service domain for lifx from 'light' to 'lifx' ( #29136 )
...
* update service domain for lifx custom services
* fix service name
2019-11-27 11:23:06 +01:00
Diefferson Koderer Môro
9a9cd1d0b2
Move imports in lifx component ( #28012 )
2019-10-21 10:09:14 +02:00
Kevin Eifinger
04ead6f273
move ATTR_MODE to homeassistant.const ( #27118 )
2019-10-02 09:33:47 -07:00
Franck Nijhof
7203027cbf
Use literal string interpolation in integrations K-M (f-strings) ( #26389 )
2019-09-03 21:14:00 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Anders Melchiorsen
39f2e49451
Update LIFX brightness during long transitions ( #24653 )
2019-06-20 13:24:45 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ( #22235 )
...
* Use relative imports inside integrations
* Lint
* Fix automation tests
* Fix scene imports
2019-03-20 22:56:46 -07:00
Jason Hu
e480f75d6d
Fix lifx light async error ( #22031 )
2019-03-14 17:10:36 +01:00
Fabian Affolter
161c368c9d
Update file header ( #21054 )
...
* Update file header
* Update __init__.py
2019-02-13 20:35:12 -08:00
Paulus Schoutsen
ec57db78b5
Consolidate config flow components ( #20635 )
...
* Consolidate config flow components
* Fix tests
* Fix tests
* Put unifi back
* Fix reqs
* Update coveragerc
2019-02-01 15:45:44 -08:00