Commit Graph

57 Commits

Author SHA1 Message Date
J. Nick Koston 2fa0bdb2dc Fix ESPHome cold/warm white color temperature read-back (#167972) 2026-04-11 16:24:50 +02:00
J. Nick Koston f2d62049ec Fix ESPHome cold/warm white brightness applied twice (#165405) 2026-03-17 09:24:21 +01:00
Pierre Sassoulas 36d6b4dafe Use clearer number notation for very small and very large literals (#164521) 2026-03-02 14:06:19 +01:00
epenet 4b666688c9 Adjust color mode handling in esphome lights (#162294) 2026-02-05 21:04:21 +01:00
epenet 2df62385f1 Remove str from light color mode (#161755) 2026-01-28 14:37:53 +01:00
J. Nick Koston 87fd45d4ab Add device_id parameter to ESPHome command calls for sub-device support (#148667) 2025-07-12 20:12:14 -10:00
J. Nick Koston c76239806d Bump aioesphomeapi to 31.0.0 (#144778)
* aioesphomeapi update

* Bump aioesphomeapi to 31.0.0

There are some breaking changes with the protobuf naming and types
required some refactoring

changelog: https://github.com/esphome/aioesphomeapi/compare/v30.2.0...v31.0.0

* actually include the commit to bump the lib
2025-05-13 20:39:53 -04:00
J. Nick Koston 3aa1c60fe3 ESPHome quality improvements round 2 (#143613)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2025-04-24 09:51:33 -10:00
J. Nick Koston 4173ff5339 Small quality fixes for ESPHome (#143535) 2025-04-23 09:42:27 -10:00
J. Nick Koston f4e7ccfcfc Explictly set PARALLEL_UPDATES for ESPHome entity platforms (#143065) 2025-04-15 21:11:05 -10:00
epenet 7014317e9e Cleanup unnecessary mired attributes in esphome (#132833)
* Cleanup unnecessary mired attributes in esphome

* Adjust
2024-12-10 15:29:33 +01:00
Sid 3142f52a79 Add Ruff refurb rules (#121701) 2024-07-10 21:47:40 +02:00
J. Nick Koston 4feca36ca6 Refactor esphome platform setup to reduce boilerplate (#120415) 2024-06-25 17:03:04 +02:00
J. Nick Koston fccb7ea1f9 Migrate ESPHome to use entry.runtime_data (#120402) 2024-06-25 13:10:09 +02:00
Jesse Hills a2a8a8f119 ESPHome: Catch and re-raise client library errors as HomeAssistantErrors (#113026) 2024-03-12 18:06:25 -10:00
Marc Mueller 0e3945ca6c Add empty line after module docstring [d-f] (#112698) 2024-03-08 14:15:26 +01:00
J. Nick Koston fd1f712d67 Bump esphome dependencies (#110892) 2024-02-19 10:38:28 +01:00
J. Nick Koston 3447e7fddb Fix ESPHome color modes for older firmwares (#108870) 2024-01-25 10:18:53 -10:00
J. Nick Koston 8d2ddb6a04 Small cleanups to ESPHome light platform (#107003)
- Remove unreachable code
- Cache filtering when possible
- Add missing coverage
2024-01-03 19:53:48 -05:00
Ville Skyttä e7b6037419 Remove unnnecessary pylint configs from components [e-l]* (#99004) 2023-08-25 09:46:34 +02:00
Franck Nijhof 868a5f377f Ruff: isort don't split imports based on trailing comma (#98162) 2023-08-10 14:27:03 +02:00
J. Nick Koston 72806bfaf2 Add more test coverage for ESPHome lights (#95415) 2023-06-28 08:40:21 +02:00
J. Nick Koston 3b7095c63b Fix esphome not removing entities when static info changes (#95202)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-06-25 21:31:31 -05:00
J. Nick Koston 57a910a144 Relocate esphome entity code into its own module (#95092) 2023-06-24 23:12:36 -04:00
Daniel Kent 983ff10541 Fix ESPHome color temperature precision for light entities (#91424)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-23 08:08:28 -05:00
J. Nick Koston 3d12c7409d Add basic light tests to esphome (#95029) 2023-06-22 21:22:29 +02:00
J. Nick Koston 9876abcac9 Migrate esphome light platform to use _on_static_info_update (#94960) 2023-06-21 12:31:14 +02:00
Jesse Hills bb39b99a3f ESPHome fix changing light color_mode (#93434) 2023-05-24 08:37:42 +02:00
Franck Nijhof 382e1ac679 Code styling tweaks to the ESPHome integration (#86146) 2023-01-18 11:10:16 +01:00
epenet dd7bc7971f Adjust type hints for LightEntityFeature (#82251) 2022-11-17 12:46:42 +01:00
Marc Mueller e8156adb13 Update mypy to 0.981 (#79115) 2022-09-26 16:10:06 -04:00
Marc Mueller 79bdc02829 Improve esphome state property decorator typing (#77152) 2022-08-26 10:52:05 +02:00
epenet 31fbc088fe Use ColorMode enum in esphome (#70490) 2022-04-23 09:13:40 -10:00
epenet dae2cf2827 Use EntityFeature enum in esphome (#69386) 2022-04-06 11:52:59 +02:00
Franck Nijhof 176f03d4ac Allow toggles (switches) state to be None (#64621) 2022-01-23 11:31:01 +01:00
Marc Mueller 2a8eaf0e0f Use assignment expressions 06 (#57786) 2021-10-17 20:05:11 +02:00
Oxan van Leeuwen c6f48056fd Remove dead code from ESPHome light entity (#55519) 2021-09-30 12:12:37 +02:00
Otto Winter 46159c3f18 ESPHome light color mode use capabilities (#55206)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-09-01 10:03:41 +02:00
Oxan van Leeuwen 844000556f Set correct ESPHome color mode when setting color temperature (#54596) 2021-08-16 16:16:36 +02:00
Jesse Hills 41d932fcf8 Send color_brightness to ESPHome devices on 1.20 (pre-color_mode) (#54670) 2021-08-15 19:56:21 -07:00
Oxan van Leeuwen 2c181181e1 Clamp color temperature to supported range in ESPHome light (#54595)
ESPHome devices initially report a color temperature of 0 or 1 until it
has been changed by the user. This broke the conversion from RGBWW to
an RGB color.

Fixes #54293.
2021-08-13 23:27:47 -07:00
Otto Winter d4cb819e1f ESPHome implement light color modes (#53854) 2021-08-02 22:07:37 +02:00
Daniel Hjelseth Høyer fbad453c89 Pylint 2.9.3 (#52972)
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-14 21:44:57 -07:00
Otto Winter 4d16cda957 ESPHome enable static type checking (#52348) 2021-07-12 22:56:10 +02:00
Franck Nijhof 168b3c100c Remove HomeAssistantType alias - Part 4 (#49515) 2021-04-21 12:18:42 +02:00
Marc Mueller 91df3fa904 Update typing 06 (#48039) 2021-03-17 23:49:01 +01:00
Philip Allgaier 625bbe6238 Cleanup unused loggers (components A-M) (#41600) 2020-10-12 16:59:05 +02:00
Erik Montnemery e4333a7a44 Rename Light to LightEntity (#34593) 2020-04-26 18:49:41 +02:00
Ville Skyttä 761d7f21e9 Upgrade pylint (#27279)
* Upgrade pylint to 2.4.2 and astroid to 2.3.1

https://pylint.readthedocs.io/en/latest/whatsnew/2.4.html
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-1
https://pylint.readthedocs.io/en/latest/whatsnew/changelog.html#what-s-new-in-pylint-2-4-2

* unnecessary-comprehension fixes

* invalid-name fixes

* self-assigning-variable fixes

* Re-enable not-an-iterable

* used-before-assignment fix

* invalid-overridden-method fixes

* undefined-variable __class__ workarounds

https://github.com/PyCQA/pylint/issues/3090

* no-member false positive disabling

* Remove some no longer needed disables

* using-constant-test fix

* Disable import-outside-toplevel for now

* Disable some apparent no-value-for-parameter false positives

* invalid-overridden-method false positive disables

https://github.com/PyCQA/pylint/issues/3150

* Fix unintentional Entity.force_update override in AfterShipSensor
2019-10-07 08:17:39 -07:00
CQoute 02c983d332 Add 'flash_length' to esphome light async_turn_off (#27214)
flash_length was overlooked when fixing the asyn_turn_on flash attribute. async_turn_off is now fixed with the flash attribute.
2019-10-06 21:49:31 +02:00