epenet
af40b6524e
Use new ServiceInfo location in component tests (part 3) ( #136064 )
2025-01-20 13:16:59 +01:00
epenet
8c13daf6d9
Move SsdpServiceInfo to service_info helpers ( #135661 )
...
* Move SsdpServiceInfo to service_info helpers
* docstring
* Move string constants
* Adjust components
2025-01-15 15:00:27 +02: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
epenet
e7a43cfe09
Migrate deconz light tests to use Kelvin ( #133002 )
2024-12-12 18:13:24 +01:00
Petar Petrov
c68cadad7a
Improve precision of HSV color conversion ( #130880 )
2024-11-19 22:06:57 +01:00
Robert Resch
380974eed4
Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper ( #127228 )
...
* Remove hassio from ALLOWED_USED_COMPONENTS
* Move HassioServiceInfo to helpers.service_info
* Deprecate moved functions
* Add note about deprecation
* Fix tests
* Implement suggestion
* Typo
* Update pyproject.toml
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-30 12:43:41 +01:00
G Johansson
cdfec7ebb4
Implement new state property for alarm_control_panel which is using an enum ( #126283 )
...
* Alarm state from enum
* Fixes
* Set final
* Fix rebase
* Test const
* Fix breaking version
* Fix other for alarm_control_panel
* Fix integrations
* More
* More
* More
* More
* Fix zha
* Replace _attr_state
* Fix alarm_control_panel
* Fix tests
* Fixes
* Mods
* Change some
* More
* More
* More
* Tests
* Last tests
* Return enum
* Fix zha
* Remove not needed check
* Fix wording
* Fix homekit
* Mod prometheus
* Fix mypy
* Fix homekit
* Fix ifttt
2024-10-21 22:54:27 +02:00
Hans Kröner
a815661de1
Add lighting effects to Hue lights managed by deCONZ ( #128292 )
...
* Add more effects for Philips Hue lights
* Update tests for light effects
2024-10-19 09:09:01 +02:00
G Johansson
666e8e133e
Cover state is enum ( #127144 )
...
* Change light state to use enum
* Adjust cover tests
* Update cover
* Fix covers
* Some tests
* More tests
* Fix tests
* Fix
2024-10-08 18:39:04 +02:00
G Johansson
c6a1b9fc39
Change Climate set temp action for incorrect feature will raise ( #126692 )
...
* Change Climate set temp action for incorrect feature will raise
* Fix some tests
* Fix review comments
* Fix tesla_fleet
* Fix tests
* Fix review comment
2024-09-25 21:16:14 +02:00
G Johansson
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
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
02cb6a6af7
Force root import of references from other components ( #125816 )
...
* Force root import of references from other components
* Improve
* Adjust
* Tweak exceptions
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Adjust
* More
* Ignore violations in test
* Improve
2024-09-16 11:28:42 +02:00
Robert Svensson
73f04e3ede
Add filter run time for deCONZ air purifiers ( #123306 )
...
* Add filter run time for deCONZ air purifiers
* Add duration and second
* Fix review comments
* Update tests/components/deconz/snapshots/test_sensor.ambr
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-06 15:41:49 +02:00
epenet
bdd3aa8e39
Use start_reauth helper method in config flow tests (a-d) ( #124780 )
...
* Use start_reauth helper method in integration tests (a-d)
* Revert broadlink
* Revert bthome
2024-08-28 15:48:36 +02:00
Robert Svensson
9e13184256
Add deCONZ Air Purifier Fan Mode select entity support ( #124513 )
...
* Add deCONZ Air Purifier Fan Mode select entity support
* Remove unused constants
2024-08-24 09:51:09 +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
J. Nick Koston
1879db9f8f
Revert to using call_soon for event triggers and state changed event trackers ( #122735 )
2024-07-29 11:45:39 +02:00
Robert Svensson
06ee8fdd47
Do not use get_hub in deCONZ tests ( #122706 )
2024-07-29 11:43:04 +02:00
Robert Svensson
58419f14e8
Less use of hass.data[DECONZ_DOMAIN] in deCONZ tests ( #122657 )
...
* Less use of hass.data[DECONZ_DOMAIN] in deCONZ tests
* Fix review comment
* Change patch path
2024-07-26 20:58:00 +02:00
Robert Svensson
047100069b
Clean up some fixtures not referenced within deCONZ tests ( #122637 )
2024-07-26 11:21:48 +02:00
Robert Svensson
b41b7aeb5b
Remove validation of state==UNAVAILABLE on config entry unload in deCONZ test ( #122558 )
...
Only test remove entry marks entities unavailable in one place
2024-07-26 10:06:58 +02:00
Robert Svensson
9b4cf873c1
Replace ConfigEntry with MockConfigEntry in deCONZ tests ( #122631 )
2024-07-26 09:36:41 +02:00
Robert Svensson
9198234465
Use snapshot in deCONZ light tests ( #122548 )
2024-07-24 20:08:42 +02:00
Robert Svensson
be8e432bea
Use snapshot in deCONZ alarm control panel tests ( #122551 )
...
* Use snapshot in deCONZ alarm control panel tests
* Clean up comments
2024-07-24 20:08:06 +02:00
Robert Svensson
3c4f2c2dcf
Use snapshot in deCONZ select tests ( #122541 )
2024-07-24 18:07:40 +02:00
Robert Svensson
277883e756
Use snapshot in deCONZ sensor tests ( #122543 )
2024-07-24 18:07:18 +02:00
Robert Svensson
5bda072141
Use snapshot in deCONZ scene tests ( #122540 )
2024-07-24 17:32:57 +02:00
Robert Svensson
a8e60a6c53
Use snapshot in deCONZ number tests ( #122538 )
2024-07-24 17:28:47 +02:00
Robert Svensson
50da3c5c5b
Use snapshot in deCONZ climate tests ( #122535 )
2024-07-24 17:15:01 +02:00
Robert Svensson
c5f9ff6ac5
Use snapshot in deCONZ cover tests ( #122537 )
2024-07-24 17:14:40 +02:00
Robert Svensson
a90d41d9e7
Use snapshot in deCONZ binary sensor tests ( #122507 )
...
* Use snapshot in deCONZ binary sensor tests
* Fix typing in button test
2024-07-24 09:01:34 +02:00
Robert Svensson
4c7828fd50
Improve deCONZ fan tests ( #122493 )
...
* Improve fan tests
* Use snapshots
2024-07-24 09:01:09 +02:00
Robert Svensson
902bf4ae86
Use snapshot in deCONZ button tests ( #122505 )
...
Use snapshot in button tests
2024-07-24 08:44:10 +02:00
Robert Svensson
e6ef8a34a7
Tweak deCONZ init and hub tests ( #122484 )
...
* Improve typing of init tests
* Clean up gateway test
* Validate deconz device registry entry
* Rename gateway to hub
* Snake case BRIDGEID to BRIDGE_ID
2024-07-23 22:29:48 +03:00
Robert Svensson
4ee256633b
Deduplicate light data with deCONZ websocket fixture ( #122421 )
2024-07-23 08:40:30 +02:00
Robert Svensson
c61efe931a
Deduplicate more fixture data related to deCONZ websocket sensor ( #122412 )
2024-07-22 21:37:58 +02:00
Robert Svensson
48661054d9
Improve fixture usage for sensor based deCONZ tests ( #122297 )
2024-07-21 13:56:16 +02:00
Robert Svensson
ecffae0b4f
Improve fixture usage for light based deCONZ tests ( #122209 )
2024-07-20 11:25:00 +02:00
Marc Mueller
0be68dcd7f
Fix deconz conftest typing ( #122173 )
2024-07-19 13:10:38 +02:00
Robert Svensson
cce77affc7
Provide default values for common keys in deCONZ websocket fixture ( #121359 )
2024-07-06 10:52:50 +02:00
Robert Svensson
1b8944dab6
Improve deCONZ websocket fixture ( #121332 )
2024-07-05 22:35:06 +02:00
Robert Svensson
94db251aea
Finally remove all legacy test stubs from deCONZ tests ( #121323 )
2024-07-05 20:47:43 +02:00
Robert Svensson
178655647d
Use fixtures in deCONZ init tests ( #121217 )
2024-07-05 19:17:47 +02:00
Robert Svensson
a773d0c8f6
Use fixtures on deCONZ event tests ( #121303 )
2024-07-05 19:11:21 +02:00
Robert Svensson
8c459959ee
Use fixtures in deCONZ gateway tests ( #121305 )
2024-07-05 16:59:10 +02:00
Robert Svensson
eb5a98e7ea
Use fixtures in deCONZ light tests PT2 ( #121208 )
2024-07-05 10:57:17 +02:00