adaptive-lighting/custom_components/adaptive_lighting
edgimar 4aeb50bfe3
feat: add option to duplicate existing lighting instance (#1329)
* feat: add option to duplicate existing lighting instance

A menu step in the config flow was added that allows a user to create a
new instance or duplicate the options of an existing one.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add type annotation, tests, and translations for duplicate feature

- Add type annotation for source_options class attribute
- Add menu step translations to en.json
- Add tests for menu display, new instance creation, and duplication

* Simplify source_options access with class-level default

---------
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2025-12-05 04:15:24 -08:00
..
translations feat: add option to duplicate existing lighting instance (#1329) 2025-12-05 04:15:24 -08:00
__init__.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
_docs_helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
adaptation_utils.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
color_and_brightness.py Fix propcache dependency (revert to functools) (#1314) 2025-11-28 16:43:52 -08:00
config_flow.py feat: add option to duplicate existing lighting instance (#1329) 2025-12-05 04:15:24 -08:00
const.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
hass_utils.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
helpers.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00
manifest.json Bump to v1.28.0 (#1310) 2025-11-27 12:42:20 -08:00
services.yaml Use markdown-code-runner==2.1.0 (#1152) 2025-01-01 16:19:08 -08:00
strings.json feat: add option to duplicate existing lighting instance (#1329) 2025-12-05 04:15:24 -08:00
switch.py Friendly names (#1258) 2025-11-27 12:01:05 -08:00