Erik Montnemery
ecb3bf79f3
Revert "Add support for subentries to config entries" ( #133470 )
...
Revert "Add support for subentries to config entries (#117355 )"
This reverts commit ad15786115
.
2024-12-18 13:51:05 +01:00
Erik Montnemery
ad15786115
Add support for subentries to config entries ( #117355 )
...
* Add support for subentries to config entries
* Improve error handling and test coverage
* Include subentry_id in subentry containers
* Auto-generate subentry_id and add optional unique_id
* Tweak
* Update tests
* Fix stale docstring
* Address review comments
* Typing tweaks
* Add methods to ConfigEntries to add and remove subentry
* Improve ConfigSubentryData typed dict
* Update test snapshots
* Adjust tests
* Fix unique_id logic
* Allow multiple subentries with None unique_id
* Add number of subentries to config entry JSON representation
* Add subentry translation support
* Allow integrations to implement multiple subentry flows
* Update translations schema
* Adjust exception text
* Change subentry flow init step to user
* Prevent creating a subentry with colliding unique_id
* Update tests
* Address review comments
* Remove duplicaetd unique_id collision check
* Remove change from the future
* Improve test coverage
* Add default value for unique_id
2024-12-12 20:16:18 +01:00
Maciej Bieniek
2a127d19dd
Use UnitOfEnergy.KILO_CALORIE in Tractive integration ( #131909 )
2024-12-10 09:50:53 +01:00
Erik Montnemery
d82bff1bc2
Index config entry discovery_keys by discovery domain ( #126563 )
...
* Index config entry discovery_keys by discovery domain
* Add new signal
* Update tests
* Update homeassistant/config_entries.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Fix imports
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 21:48:11 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
epenet
7652c35ee6
Use start_reauth helper method in integration tests (t) ( #124794 )
2024-08-28 16:47:10 +02:00
epenet
3dc83ef19d
Add missing hass type hint in component tests (t) ( #124274 )
2024-08-20 12:55:39 +02:00
Joost Lekkerkerker
e8d7eb05ae
Delete unused snapshots ( #123656 )
...
* Delete unused snapshots
* Delete unused snapshots
2024-08-12 13:28:09 +02:00
Robert Resch
ad50136dbd
Add created_at/modified_at to config entries ( #122456 )
2024-07-29 22:08:46 +02:00
Marc Mueller
f11b316dac
Import Generator from collections.abc (4) ( #120917 )
2024-07-01 11:54:42 +02:00
Marc Mueller
59e178df3b
Import Generator from typing_extensions (5) ( #118993 )
2024-06-06 17:33:27 +02:00
Maciej Bieniek
cf51179009
Add tests for Tractive integration ( #118470 )
...
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-30 12:45:11 +02:00
Maciej Bieniek
40be1424b5
Store Tractive data in `config_entry.runtime_data` ( #116781 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-05-08 09:03:26 +02:00
Joost Lekkerkerker
f3ba713289
Use FlowResultType enum in config flow tests N-Z ( #114682 )
...
Use FlowResultType enum in config flow tests
2024-04-03 09:53:20 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
J. Nick Koston
ea2178a53d
Fix tractive tests using a dict for the unique_id ( #107602 )
2024-01-08 13:10:15 -10:00
epenet
278050a73f
Add type hints to integration tests (t-z) ( #87707 )
2023-02-08 19:10:53 +01:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
Paulus Schoutsen
255ffe801b
Fix tractive flaky test ( #57026 )
2021-10-04 06:46:06 +02:00
Daniel Hjelseth Høyer
d11c58dac8
Improve Tractive ( #54532 )
...
* Tractive, code improve
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tractive, code improve
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Tractive, code improve
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Update homeassistant/components/tractive/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tractive/const.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Tractive, comments
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Update homeassistant/components/tractive/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/tractive/config_flow.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Tractive
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Reauth
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* Reauth
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* add tests
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
* add tests
Signed-off-by: Daniel Hjelseth Høyer <github@dahoiv.net>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-16 12:56:10 +02:00
Gleb Sinyavskiy
25eb27cb9f
Add tractive integration ( #51002 )
...
* Scaffold
* Implement config flow
* Add dymmy device tracker and TractiveClient
* Add simple DeviceTracker
* Add device info
* Listen to tractive event and update tracker entities accordingly
* Refactoring
* Fix logging level
* Handle connection errors
* Remove sleep
* Fix logging
* Remove unused strings
* Replace username config with email
* Update aiotractive
* Use debug instead of info
* Cover config_flow
* Update .coveragerc
* Add quality scale to manifest
* pylint
* Update aiotractive
* Do not emit SERVER_AVAILABLE, properly handle availability
* Use async_get_clientsession
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
* Add @Danielhiversen as a codeowner
* Remove the title from strings and translations
* Update homeassistant/components/tractive/__init__.py
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
* Force CI
* Use _attr style properties instead of methods
* Remove entry_type
* Remove quality scale
* Make pyupgrade happy
Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2021-08-05 12:47:42 +02:00