Commit Graph

206 Commits (77dd0b2fd3da885571f4d78f4ab23b6531d2b3c3)

Author SHA1 Message Date
J. Nick Koston 8c41d0d3d7
Ensure LIFX connection is cleaned up on failure (#77465)
Fixes #77464
2022-08-29 11:02:41 +02:00
GitHub Action 296e52d918 [ci skip] Translation update 2022-08-21 00:24:25 +00:00
J. Nick Koston b43242ef0d
Fix lifx homekit discoveries not being ignorable or updating the IP (#76825) 2022-08-15 21:09:13 -04:00
GitHub Action ff3fd4c29d [ci skip] Translation update 2022-08-16 00:30:51 +00:00
Franck Nijhof 8f0f734c28
Fix entity category for LIFX buttons (#76788) 2022-08-15 11:35:53 +02:00
J. Nick Koston eeb9a9f058
Make sure all discovery flows are using the helper (#76641) 2022-08-12 09:25:23 -04:00
GitHub Action 519d478d61 [ci skip] Translation update 2022-08-11 00:26:23 +00:00
Avi Miller d14b76e7fc
Enable the LIFX diagnostic buttons by default (#76389) 2022-08-07 08:45:26 -10:00
Avi Miller 74cfdc6c1f
Add identify and restart button entities to the LIFX integration (#75568) 2022-08-06 17:28:30 -10:00
Avi Miller db3e21df86
Update aiolifx to version 0.8.2 (#76367) 2022-08-06 15:02:32 -10:00
GitHub Action cb46441b74 [ci skip] Translation update 2022-08-05 00:28:51 +00:00
GitHub Action 81e3ef03f7 [ci skip] Translation update 2022-08-02 00:27:42 +00:00
GitHub Action c4ad6d46ae [ci skip] Translation update 2022-07-30 00:22:48 +00:00
J. Nick Koston 2df20e7a42
Make lifx async_migrate_legacy_entries a callback (#75719) 2022-07-25 20:21:43 +02:00
GitHub Action 4a50010458 [ci skip] Translation update 2022-07-25 00:25:55 +00:00
GitHub Action 8e86124470 [ci skip] Translation update 2022-07-23 00:25:17 +00:00
GitHub Action 36138afb93 [ci skip] Translation update 2022-07-22 00:29:27 +00:00
GitHub Action 87797c8b66 [ci skip] Translation update 2022-07-21 00:26:18 +00:00
GitHub Action c29bd48373 [ci skip] Translation update 2022-07-20 00:22:51 +00:00
GitHub Action ebabaeb364 [ci skip] Translation update 2022-07-19 00:29:06 +00:00
J. Nick Koston 1354952977
Migrate LIFX to config entry per device (#74316) 2022-07-18 17:56:34 -05:00
GitHub Action a3fd5acf3f [ci skip] Translation update 2022-07-13 00:27:34 +00:00
J. Nick Koston cd03c49fc2
Wait for config entry platform forwards (#73806) 2022-07-09 17:27:42 +02: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
GitHub Action ceb8bb4745 [ci skip] Translation update 2022-05-21 00:22:49 +00:00
GitHub Action 37f81b261d [ci skip] Translation update 2022-05-16 00:24:28 +00: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
Avi Miller 4ad26af2ea
Update the LIFX manifest with full list of models (#70614) 2022-04-24 16:25:09 -10:00
Avi Miller 42e0bc849c
Narrow down the list of LIFX models for HomeKit discovery (#70125)
* Narrow down the list of LIFX models for HomeKit discovery

This allows the LIFX Switch to be integrated using the HomeKit
Controller component. I also adjusted the zeroconf test so that
the partial match still matches the lifx integration.

Signed-off-by: Avi Miller <me@dje.li>

* Update tests/components/zeroconf/test_init.py

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-04-16 10:08:44 -10:00
Erik Montnemery 5a1bcc2c5b
Revert "Narrow the list of models of LIFX devices discovered using HomeKit" (#70085) 2022-04-15 12:50:39 +02:00
Avi Miller 2b908bd542
Narrow the list of models of LIFX devices discovered using HomeKit (#70068)
This allows the LIFX Switch to be discovered by the HomeKit Controller
integration instead of being captured by the LIFX integration which
doesn't support switches.

Signed-off-by: Avi Miller <me@dje.li>
2022-04-14 11:44:37 -10:00
Anders Melchiorsen 480d9d63ee
LIFX device cleanup cleanup (#68937) 2022-04-01 11:40:29 +03:00
epenet bfd84ba89c
Prettify yaml (services.yaml) (#68878) 2022-03-30 09:48:06 +02: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
Avi Miller 6c41786be4
Update aiolifx dependency to resolve log flood (#67721) 2022-03-06 00:03:52 -08:00
GitHub Action 102ae9f0e3 [ci skip] Translation update 2022-02-22 00:17:23 +00:00
Marc Mueller ab67ba20f5
Update pylint plugin to validate `_async_has_devices` (#66512) 2022-02-14 18:10:50 +01:00
Anders Melchiorsen 9e0926f943
Remove LIFX devices with no entities (#65964) 2022-02-07 08:19:32 +01:00
GitHub Action b2f0882e67 [ci skip] Translation update 2022-02-04 00:13:58 +00:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
GitHub Action 77ef86faee [ci skip] Translation update 2022-01-30 00:14:21 +00:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08: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 e02f0c34e5
Add init type hints [k-l] (#63188)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 16:34:33 +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
Marc Mueller 40b99135e5
Use platform enum (3) [H-L] (#60937)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2021-12-05 17:10:07 -10:00
GitHub Action 9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action 4e419d8c6f [ci skip] Translation update 2021-11-01 00:13:04 +00: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
GitHub Action f42c2f5170 [ci skip] Translation update 2021-10-02 12:59:05 +00:00
Anders Melchiorsen d8b85b2067
Fix LIFX firmware version information (#55713) 2021-09-04 13:18:23 +02:00
Anders Melchiorsen ed19fdd462
Upgrade aiolifx to 0.6.10 (#55344) 2021-08-27 09:53:42 -07:00
J. Nick Koston 176fd39e0b
Fix lifx model to be a string (#55309)
Fixes #55307
2021-08-27 06:37:28 +02:00
GitHub Action 65d14909ee [ci skip] Translation update 2021-08-27 00:14:42 +00:00
GitHub Action ecf0d4398d [ci skip] Translation update 2021-07-22 00:10:31 +00:00
Marc Mueller f6b162bc39
Add pylint CodeStyle extension (#53147) 2021-07-19 06:57:06 -07:00
GitHub Action c81df50191 [ci skip] Translation update 2021-06-06 00:19:43 +00:00
tkdrob 028a07d86f
Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
tkdrob a9660d5788
Add targets and selectors for services (L-M) (#50543) 2021-05-15 11:06:34 +02:00
Franck Nijhof 2ed386f9e6
Migrate to async_get_current_platform everywhere (#50034) 2021-05-03 09:34:28 -07:00
Franck Nijhof c68b259bd3
Cleanup of unused connection_class logic (#49865)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Anders Melchiorsen 21872c42fe
Fix color setting in LIFX services (#49822) 2021-04-28 13:31:40 -07:00
J. Nick Koston b10534359b
Reduce config entry setup/unload boilerplate K-M (#49775) 2021-04-27 18:49:13 +02:00
Franck Nijhof 055cdc64c0
Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
HomeAssistant Azure c11b85af2f [ci skip] Translation update 2021-03-16 00:04:36 +00:00
Franck Nijhof d1afef843b
Deprecate LIFX Legacy integration (#47235) 2021-03-01 16:34:14 -08:00
HomeAssistant Azure 0cb1f61deb [ci skip] Translation update 2021-02-21 00:07:04 +00: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 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
Anders Melchiorsen 011d5208fd
Upgrade aiolifx to 0.6.9 (#45448) 2021-01-23 06:21:57 +01:00
HomeAssistant Azure 42f00cff30 [ci skip] Translation update 2020-12-04 00:05:42 +00:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
HomeAssistant Azure ed232ac733 [ci skip] Translation update 2020-10-24 00:05:17 +00:00
Paulus Schoutsen 5dac3883b0
Stub light profiles (#42232) 2020-10-23 16:28:21 +02:00
HomeAssistant Azure 994ae09f69 [ci skip] Translation update 2020-10-15 00:03:50 +00:00
HomeAssistant Azure 1417a4161f [ci skip] Translation update 2020-10-13 00:03:24 +00:00
Matthias Alphart 93a9a11065
Add config validator helper positive_float (#41640) 2020-10-11 22:04:49 +02:00
HomeAssistant Azure 80522f1bdc [ci skip] Translation update 2020-10-11 00:03:37 +00:00
HomeAssistant Azure 6ae12c3faf [ci skip] Translation update 2020-10-10 00:05:05 +00:00
HomeAssistant Azure bcfa4ac959 [ci skip] Translation update 2020-10-06 00:08:09 +00:00
HomeAssistant Azure 8d1d585b40 [ci skip] Translation update 2020-10-05 00:04:23 +00:00
HomeAssistant Azure f8c2d877aa [ci skip] Translation update 2020-10-04 00:05:05 +00:00
Jason Madigan a3fef0f330
Use reference strings in lifx (#41124) 2020-10-03 14:12:52 +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
HomeAssistant Azure b15caf31a9 [ci skip] Translation update 2020-06-15 00:03:32 +00:00
HomeAssistant Azure 564fb1d1e5 [ci skip] Translation update 2020-05-29 00:04:16 +00: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
Paulus Schoutsen 0efeefe3b2 Update translations 2020-05-13 11:27:21 -07:00
Erik Montnemery e4333a7a44
Rename Light to LightEntity (#34593) 2020-04-26 18:49:41 +02:00
HomeAssistant Azure 90e0a1af8a [ci skip] Translation update 2020-04-26 00:02:45 +00:00
Paulus Schoutsen e002c84eba
Don't set step title if it's integration title (#34524) 2020-04-22 15:05:39 +02:00