Commit Graph
46 Commits
Author SHA1 Message Date
Josef ZweckandGitHub cad6c72cfa Bump aiotedee to 0.2.23 (#145822)
* Bump aiotedee to 0.2.23

* update snapshot
2025-05-29 10:35:05 +03:00
Abílio CostaandGitHub b626204f63 Add default device class display precision for Sensor (#145013)
* Add default device class display precision for Sensor

* Renaming, docstrings, cleanup

* Simplify units list

* Fix tests

* Fix missing precision when suggested is specified

* Update snapshots

* Fix when unit of measurement is not valid

* Fix tests

* Fix deprecated unit usage

* Fix goalzero tests

The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.

Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.

* Fix metoffice

* Fix smartthings

* Add default sensor data for Tesla Wall Connector tests

* Update snapshots

* Revert spaces

* Update smartthings snapshots

* Add missing sensor mock for tesla wall connector

* Address review comments

* Add doc comment

* Add cap to doc comment

* Update comment

* Update snapshots

* Update comment
2025-05-26 19:40:29 +02:00
Erik MontnemeryandGitHub 4e1d5fbeb0 Add WS command to help reset custom entity_id (#145504)
* Add WS command to help reset custom entity_id

* Calculate suggested object id from entity properties

* Fix logic and add additional tests

* Adjust test

* Update folder_watcher test

* Handle current entity id matches the automatic entity id

* Don't store calculated_object_id

* Update snapshots

* Update snapshots

* Update test

* Tweak logic for reusing current entity_id

* Improve test

* Don't assign same entity_id to several entities

* Prioritize custom entity name

* Update snapshots

* Update snapshots
2025-05-26 19:28:27 +02:00
Simone ChemelliandGitHub 484a547758 Fix pylance warning on SnapshotAssertion import (#145206) 2025-05-19 13:55:48 +02:00
4b34d1bbb5 Merge config subentry feature branch to dev (#136121)
* Reapply "Add support for subentries to config entries" (#133470) (#136061)

* Reapply "Add support for subentries to config entries" (#133470)

This reverts commit ecb3bf79f3.

* Update test snapshot

* Add config subentry support to device registry (#128157)

* Add config subentry support to device registry

* Apply suggestions from code review

* Update syrupy serializer

* Update snapshots

* Address review comments

* Allow a device to be connected to no or a single subentry of a config entry

* Update snapshots

* Revert "Allow a device to be connected to no or a single subentry of a config entry"

This reverts commit ec6f613151cb4a806b7961033c004b71b76510c2.

* Update test snapshots

* Bump release version in comments

* Rename config_subentries to config_entries_subentries

* Add config subentry support to entity registry (#128155)

* Add config subentry support to entity registry

* Update syrupy serializer

* Update snapshots

* Update snapshots

* Accept suggested changes

* Clean registries when removing subentry (#136671)

* Clean up registries when removing subentry

* Update tests

* Clean up subentries from deleted devices when removing config entry (#136669)

* Clean up subentries from deleted devices when removing config entry

* Move

* Add config subentry support to entity platform (#128161)

* Add config subentry support to entity platform

* Rename subentry_id to config_subentry_id

* Store subentry type in subentry (#136687)

* Add reconfigure support to config subentries (#133353)

* Add reconfigure support to config subentries

* Update test

* Minor adjustment

* Rename supported_subentry_flows to supported_subentry_types

* Address review comments

* Add subentry support to kitchen sink (#136755)

* Add subentry support to kitchen sink

* Add subentry reconfigure support to kitchen_sink

* Update kitchen_sink tests with subentry type stored in config entry

* Update kitchen_sink

* Update kitchen_sink

* Adjust kitchen sink tests

* Fix hassfest

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <[email protected]>

* Improve docstrings and strings.json

---------

Co-authored-by: Martin Hjelmare <[email protected]>

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2025-02-10 16:40:07 +01:00
Josef ZweckandGitHub 89387760d3 Cleanup tests for tedee (#133306) 2024-12-15 20:44:28 +01:00
Jan BouwhuisandGitHub 3aae9b629f Add exception translation for entity action not supported (#131956) 2024-12-01 16:53:06 +01:00
Josef ZweckandGitHub 8384100e1b Rename tedee library (#130203) 2024-11-09 10:46:38 +01:00
Josef ZweckandGitHub 5d5908a03f Add missing string to tedee plus test (#130081) 2024-11-08 08:47:28 +01:00
epenetandGitHub fdda0cc9cc Use reauth/reconfigure helpers in tedee config flow (#128025)
* Use reauth/reconfigure helpers in tedee config flow

* Also cleanup unnecessary reconfigure_confirm
2024-10-14 18:01:47 +02:00
Josef ZweckandGitHub cdb1b1df15 Add model_id to tedee (#128356) 2024-10-14 14:56:27 +02:00
epenetandGitHub 9873371413 Use start_reconfigure_flow in config flow tests (#127191)
* Use start_reconfigure_flow in config flow tests

* Adjust fritz
2024-10-02 10:01:15 +02:00
Josef ZweckandGitHub d9eb419ecc Add translation for tedee exceptions (#126963) 2024-09-27 22:21:01 +02:00
G JohanssonandGitHub 93aade6e8e Change lock state to an enum (#126379)
* Add new LockState enum for lock states

* Add rest

* Fix insteon tests

* Fix mqtt tests

* Fix tesla_fleet

* Revert back ST_STATE_LOCKED

* Add back constant
2024-09-24 12:30:50 +02:00
epenetandGitHub 7652c35ee6 Use start_reauth helper method in integration tests (t) (#124794) 2024-08-28 16:47:10 +02:00
Robert ReschandGitHub b89a859f14 Fix and improve tedee lock states (#123022)
Improve tedee lock states
2024-08-02 15:58:41 +02:00
Josef ZweckandGitHub f1b933ae0c Add uncalibrated sensor for tedee (#122594)
* add uncalibrated sensor

* change off icon
2024-07-25 15:42:10 +02:00
02bb1ec8e7 Add reconfigure step to tedee (#122008)
* Add reconfigure to tedee

* assert data update

* add rconfigure_confirm to strings

* Update integration name

---------

Co-authored-by: G Johansson <[email protected]>
2024-07-18 13:00:35 +02:00
Joost LekkerkerkerandGitHub f8ba4d41ba Add support for adding model_id in device info (#121989) 2024-07-16 15:12:25 +02:00
Marc MuellerandGitHub f11b316dac Import Generator from collections.abc (4) (#120917) 2024-07-01 11:54:42 +02:00
9bbeb5d608 Add primary_config_entry attribute to device registry entries (#119959)
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Robert Resch <[email protected]>
2024-06-26 12:26:24 +02:00
Paulus SchoutsenandGitHub eb89ce47ea Inline primary integration (#119860) 2024-06-18 08:08:08 +02:00
Paulus SchoutsenandGitHub 836abe68c7 Track primary integration (#119741)
* Track primary integration

* Update snapshots

* More snapshots updated

* Uno mas

* Update snapshot
2024-06-16 13:26:06 -04:00
Marc MuellerandGitHub 59e178df3b Import Generator from typing_extensions (5) (#118993) 2024-06-06 17:33:27 +02:00
epenetandGitHub 3ac0fa53c8 Cleanup unused FixtureRequest in tests (#118780) 2024-06-04 11:49:21 +02:00
d0e99b62da Re-introduce webhook to tedee integration (#110247)
* bring webhook over to new branch

* change log levels

* Update homeassistant/components/tedee/coordinator.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* fix minor version

* ruff

* mock config entry version

* fix

* ruff

* add cleanup during webhook registration

* feedback

* ruff

* Update __init__.py

Co-authored-by: Erik Montnemery <[email protected]>

* Update homeassistant/components/tedee/__init__.py

Co-authored-by: Erik Montnemery <[email protected]>

* add downgrade test

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
Co-authored-by: Erik Montnemery <[email protected]>
2024-05-14 19:38:58 +02:00
Joost LekkerkerkerandGitHub ee66f6ec8c Use is in enum comparison in config flow tests P-T (#114675) 2024-04-02 11:21:50 -10:00
6bb4e7d62c Bump ruff to 0.3.4 (#112690)
Co-authored-by: Sid <[email protected]>
Co-authored-by: Marc Mueller <[email protected]>
Co-authored-by: J. Nick Koston <[email protected]>
2024-03-26 00:02:16 +01:00
Erik MontnemeryandGitHub 426f73b1f4 Add State.last_reported (#113511)
* Add State.last_reported

* Update tests

* Update test snapshots

* Call state_reported listeners when firing state_changed event

* Add tests
2024-03-20 21:05:07 +01:00
Marc MuellerandGitHub aa16a9d707 Add empty line after module docstring (3) (#112750) 2024-03-08 20:38:34 +01:00
Marc MuellerandGitHub 87165c0d6e Add empty line after module docstring [tests t-z] (#112712) 2024-03-08 14:44:56 +01:00
Joost LekkerkerkerandGitHub d3f28718ec Add icon translations to Tedee (#112307)
* Add icon translations to Tedee

* Add icon translations to Tedee
2024-03-05 14:20:59 +01:00
Franck NijhofandGitHub e0a9dcd996 Add label registry (#110821) 2024-02-19 11:59:08 +01:00
Josef ZweckandGitHub 2fc56ff4e4 Add late PR changes to tedee (#109858)
requested changes
2024-02-07 08:53:19 +01:00
Josef ZweckandGitHub ae70729932 Revert "Add webhook support to tedee integration (#106846)" (#109408) 2024-02-04 15:02:21 +01:00
00c2ba69f7 Add webhook support to tedee integration (#106846)
* start work on webhooks

* start work on webhooks

* use background task

* websocket improvement

* add test

* add webhook id to mock_config_entry

* some changes

* add webhook to manifest

* fix test

* reset poll timer on webhook update

* reset poll timer on webhook update

* code cleanup

* generate webhook id in config flow

* fix merge

* undo var rename

* remove

* ruff

* ruff

* only delete specific webhook

* clarify warning

* version bump

* minor improvements

* requested changes

* unregister function

* move more of unregistration logic

* test pushed data

* add comment

* Update config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* ruff

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-01-26 10:48:16 +01:00
Josef ZweckandGitHub 956921a930 Improvements for tedee integration (#107238)
* improvements

* wait another second before creating the entry

* move delay to lib

* move library bump to separate PR

* move available back to lock from entity
2024-01-10 14:55:28 +01:00
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 <[email protected]>

* Update tests/components/tedee/test_init.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* 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 <[email protected]>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-01-08 10:37:35 +01:00
Josef ZweckandGitHub 7385da626e Add new locks automatically to tedee integration (#107372)
* remove removed locks

* move duplicated code to function

* remove entities by removing device

* add new locks automatically

* add locks from coordinator

* remove other PR stuff

* add pullspring lock to test for coverage

* requested changes
2024-01-06 16:02:07 +01:00
Josef ZweckandGitHub 87c79ef57f Add tedee bridge as via_device for tedee integration (#106914)
* add bridge as via_device

* add bridge as via_device

* move getting bridge to update_data

* add bridge property
2024-01-02 23:23:50 +01:00
Josef ZweckandGitHub f0132a6b88 Add reauthentication for tedee integration (#106667)
* start work

* add reauth

* title

* reuse user step for reauth

* Update strings.json

* simplify flow

* remove inline if

* remove await hass block
2024-01-02 13:28:15 +01:00
97a5f0b2af Add diagnostics for tedee (#106662)
* add diagnostics

* don't redact lock name

* Update test_diagnostics.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2024-01-02 10:34:02 +01:00
83b0934138 Add binary sensors for tedee (#106773)
* fix tests

* Update homeassistant/components/tedee/binary_sensor.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2023-12-31 13:16:01 +01:00
Josef ZweckandGitHub 0549c9e113 Add sensor platform for tedee integration (#106722)
* add sensors

* requested changes

* remove translation key from battery

* fix pullspring test

* loop instead of parametrize

* name snapshots

* fix snapshots
2023-12-31 12:24:44 +01:00
Josef ZweckandGitHub f17470cb29 Upper case tedee device name (#106685) 2023-12-30 13:15:22 +01:00
02b863e968 Add tedee integration (#102846)
* init tedee

* init tests

* add config flow tests

* liniting

* test

* undo

* linting

* pylint

* add tests

* more tests

* more tests

* update snapshot

* more tests

* typing

* strict typing

* cleanups

* cleanups, fix tests

* remove extra platforms

* remove codeowner

* improvements

* catch tedeeclientexception

* allow bridge selection in CF

* allow bridge selection in CF

* allow bridge selection in CF

* allow bridge selection in CF

* abort earlier

* auto-select bridge

* remove cloud token, optionsflow to remove size

* remove options flow leftovers

* improve coverage

* defer coordinator setting to after first update

* define coordinator

* some improvements

* remove diagnostics, webhook

* remove reauth flow, freeze data classes

* fix lock test

* Update homeassistant/components/tedee/entity.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/__init__.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/entity.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/entity.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* requested changes

* requested changes

* Update lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update entity.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* requested changes

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/tedee/test_lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/tedee/conftest.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/coordinator.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update tests/components/tedee/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/strings.json

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/strings.json

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/strings.json

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update homeassistant/components/tedee/lock.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* requested changes

* requested changes

* requested changes

* revert load fixture

* change tests

* Update test_config_flow.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update strings.json

Co-authored-by: Joost Lekkerkerker <[email protected]>

* Update coordinator.py

Co-authored-by: Joost Lekkerkerker <[email protected]>

* remove warning

* move stuff out of try

* add docstring

* tedee lowercase, time.time

* back to some uppercase, time.time

* awaitable

---------

Co-authored-by: Joost Lekkerkerker <[email protected]>
2023-12-29 14:55:41 +01:00