Maciej Bieniek
f0c6b47522
Increase test coverage for IMGW-PIB ( #135915 )
2025-01-18 13:31:17 +01:00
Josef Zweck
f878465a9a
Fix imgw_pib tests ( #135913 )
2025-01-18 06:07:28 -06:00
Maciej Bieniek
b0d3aa1c34
Bump `imgw_pib` to version 1.0.9 and remove hydrological detail entities ( #134668 )
2025-01-16 23:42:03 +01:00
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
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
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
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
epenet
3e9d25f81d
Add missing argument type hints to component tests ( #119671 )
2024-06-14 09:26:46 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) ( #118990 )
2024-06-06 17:28:59 +02:00
epenet
3d31af3eb4
Move entity_registry_enabled_by_default to decorator [a-p] ( #118794 )
2024-06-04 16:18:42 +02:00
Maciej Bieniek
e16a88a9c9
Set the quality scale to platinum for IMGW-PIB integration ( #116912 )
...
* Increase test coverage
* Set the quality scale to platinum
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-08 08:51:25 +02:00
Maciej Bieniek
74df693079
Add new sensors to IMGW-PIB integration ( #116631 )
...
Add flood warning/alarm level sensors
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-06 15:03:25 +02:00
Maciej Bieniek
37d9ed899d
Add `binary_sensor` platform to IMGW-PIB integration ( #116624 )
...
* Add binary_sensor platform
* Add tests
* Remove state attributes
* Remove attrs from strings.json
* Use base entity class
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-02 16:16:26 +02:00
Maciej Bieniek
ae6a497cd1
Add diagnostics platform to IMGW-PIB integration ( #116551 )
...
* Add diagnostics
* Add tests
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-01 21:06:22 +02:00
Maciej Bieniek
c46be022c8
Add IMGW-PIB integration ( #116468 )
...
* Add sensor platform
* Add tests
* Fix icons.json
* Use entry.runtime_data
* Remove validate_input function
* Change abort reason to cannot_connect
* Remove unnecessary square brackets
* Move _attr_attribution outside the constructor
* Use native_value property
* Use is with ENUMs
* Import SOURCE_USER
* Change test name
* Use freezer.tick
* Tests refactoring
* Remove test_setup_entry
* Test creating entry after error
* Add missing async_block_till_done
* Fix translation key
* Remove coordinator type annotation
* Enable strict typing
* Assert config entry unique_id
---------
Co-authored-by: Maciej Bieniek <478555+bieniu@users.noreply.github.com>
2024-05-01 14:38:36 +02:00