Commit graph

762 commits

Author SHA1 Message Date
Bas Nijholt
8ff125f779 sort 2023-07-31 20:08:59 -07:00
Bas Nijholt
2a78ccec25 more logging 2023-07-31 20:04:24 -07:00
Bas Nijholt
74387acfc6 expand light groups 2023-07-31 19:34:08 -07:00
Bas Nijholt
1c6c27441b fix 2023-07-31 18:54:19 -07:00
Bas Nijholt
19592788d4 fix 2023-07-31 18:53:52 -07:00
Bas Nijholt
8a16c9fb03 Comments 2023-07-31 18:48:18 -07:00
Bas Nijholt
645b262ced Merge remote-tracking branch 'origin/main' into multi-light-intercept 2023-07-31 18:44:16 -07:00
Bas Nijholt
e513393653
Keep on and off state tracking in Manager and listen to toggle (#689)
* Keep on and off state tracking in Manager

* Move manual_control code

* add todo

* check is_on

* Track toggle

* handle toggle

* fix debug

* test

* add comment

* better log

* Fix comment

* log

* test

* get

* check

* cancel early

* rephrase

* add assert

* Remove check
2023-07-31 18:40:32 -07:00
pre-commit-ci[bot]
da2e27d738
[pre-commit.ci] pre-commit autoupdate (#691)
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.280 → v0.0.281](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.280...v0.0.281)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-31 18:15:36 -07:00
Bas Nijholt
aa9f69a7bb
Set last_service_data in the right place (#652)
* Set last_service_data in the right place

* Do not get but access key

* rename
2023-07-31 17:52:53 -07:00
Bas Nijholt
155c6f881d extra test 2023-07-31 09:35:53 -07:00
Bas Nijholt
6a14d7140b assert 2023-07-31 09:34:12 -07:00
Bas Nijholt
f04c475d06 Extra test 2023-07-31 09:32:33 -07:00
Bas Nijholt
76a9e09f7d Merge remote-tracking branch 'origin/main' into multi-light-intercept 2023-07-30 22:31:03 -07:00
Bas Nijholt
d588a5984a
Refactor _update_attrs_and_maybe_adapt_lights (#688)
* Do not call self.manager.significant_change when not needed

* refact

* fix

* fix

* Add more logging to tests

* remove
2023-07-31 04:57:30 +00:00
Bas Nijholt
50ecf54302 Add doc-string 2023-07-30 13:46:45 -07:00
Bas Nijholt
462ab0ab2b Merge remote-tracking branch 'origin/main' into multi-light-intercept 2023-07-30 13:31:21 -07:00
Bas Nijholt
1842ac9bd5
Do not assert but issue a warning (#687) 1.18.2
* Do not assert but issue a warning

* bump to 1.18.2
2023-07-30 13:28:58 -07:00
Bas Nijholt
e98f0dfa55 Bump to 1.18.1 1.18.1 2023-07-30 13:11:30 -07:00
Bas Nijholt
f4d872a540
Make sure that SimpleSwitches are added before AdaptiveSwitch (#686) 2023-07-30 20:01:08 +00:00
Bas Nijholt
2e25af3125
Do not intercept effect and flash calls (#685)
* Do not intercept effect and flash calls

* log

* Do not intercept flash
2023-07-30 19:32:59 +00:00
Bas Nijholt
2b35ee1e5e
Mark as manually controlled when using flash, effect, or RGBW(W) (#684)
* Mark as manually controlled when using flash or effect

* Add comment

* Add RGBW and RGBWW
2023-07-30 18:49:40 +00:00
Bas Nijholt
8e4ff80b9d Remove the DEBUG_MODE 2023-07-30 00:08:24 -07:00
Bas Nijholt
a38b51fcc5 More tests 2023-07-30 00:04:37 -07:00
Bas Nijholt
a6808816ad Improve tests 2023-07-29 23:58:55 -07:00
Bas Nijholt
7abb469dd8 Merge remote-tracking branch 'origin/main' into multi-light-intercept 2023-07-29 21:50:39 -07:00
Bas Nijholt
68985199f6
Rename lights in tests (#681)
* Rename lights in tests

* Remove unused dependencies
2023-07-30 04:48:45 +00:00
Bas Nijholt
82c752378f Merge branch 'test-rename-lights' into multi-light-intercept 2023-07-29 21:47:20 -07:00
Bas Nijholt
da57df8182 Remove unused dependencies 2023-07-29 21:46:28 -07:00
Bas Nijholt
c6a4801cba Rename lights in tests 2023-07-29 21:44:38 -07:00
Bas Nijholt
164b9782c3 Fix tests 2023-07-29 21:22:46 -07:00
Bas Nijholt
9006c6d643 rename lights 2023-07-29 21:20:11 -07:00
Bas Nijholt
8516e70768 rename switch 2023-07-29 20:58:18 -07:00
Bas Nijholt
6a7e1c397f Make test failing 2023-07-29 18:35:50 -07:00
Bas Nijholt
6c08ae39de Add test 2023-07-29 18:31:06 -07:00
Bas Nijholt
a31ffe293a Debug mode 2023-07-29 17:56:48 -07:00
Bas Nijholt
8e305741fb remove unused ignores 2023-07-29 17:28:12 -07:00
Bas Nijholt
bed616343e simplify 2023-07-29 17:26:40 -07:00
Bas Nijholt
e98c5b19be Fix for HA ≤2023.04 2023-07-29 17:25:16 -07:00
Bas Nijholt
28fbd60873 Add logging and fix error 2023-07-29 17:11:18 -07:00
Bas Nijholt
3261e9f78c indentation 2023-07-29 12:34:45 -07:00
Bas Nijholt
c8a3e9acac Fix skipped 2023-07-29 12:21:23 -07:00
Bas Nijholt
d03613d14e fix type 2023-07-29 12:18:54 -07:00
Bas Nijholt
60c8c6df72 add comment 2023-07-29 12:18:10 -07:00
Bas Nijholt
d07ca3da84 skip if no eids 2023-07-29 12:12:41 -07:00
Bas Nijholt
25d77cebbc remove comment 2023-07-29 12:11:53 -07:00
Bas Nijholt
3b4602c915 Implement call intercept for multiple lights 2023-07-29 12:11:18 -07:00
Bas Nijholt
8322e516ba
Add link to repo in README 2023-07-28 18:41:41 -07:00
Bas Nijholt
8967747f31
Release 1.18.0 (fixes lights accidentally turning on 🚀🎉) (#676) 1.18.0 2023-07-28 17:25:50 -07:00
Bas Nijholt
f28c031551
Fix alias in FUNDING.yml (#677) 2023-07-28 17:20:01 -07:00