core/tests/components/tedee
Josef Zweck 14bf778c10
Cleanup device registry for tedee when a lock is removed (#106994)
* remove removed locks

* move duplicated code to function

* remove entities by removing device

* add new locks automatically

* add locks from coordinator

* smaller pr

* remove snapshot

* move lock removal to coordinator

* change comment

* Update tests/components/tedee/test_init.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tedee/test_init.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* test lock unavailable

* move logic to function

* resolve merge conflicts

* no need to call keys()

* no need to call keys()

* check for change first

* readability

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-01-08 10:37:35 +01:00
..
fixtures
snapshots Add new locks automatically to tedee integration (#107372) 2024-01-06 16:02:07 +01:00
__init__.py
conftest.py
test_binary_sensor.py Add new locks automatically to tedee integration (#107372) 2024-01-06 16:02:07 +01:00
test_config_flow.py Add reauthentication for tedee integration (#106667) 2024-01-02 13:28:15 +01:00
test_diagnostics.py Add diagnostics for tedee (#106662) 2024-01-02 10:34:02 +01:00
test_init.py Add tedee bridge as via_device for tedee integration (#106914) 2024-01-02 23:23:50 +01:00
test_lock.py Cleanup device registry for tedee when a lock is removed (#106994) 2024-01-08 10:37:35 +01:00
test_sensor.py Add new locks automatically to tedee integration (#107372) 2024-01-06 16:02:07 +01:00