Commit Graph

70 Commits (df55d198c85065583bba25e499ceab2499b47911)

Author SHA1 Message Date
G Johansson 4d63bf473d
Add validation to set_humidity action in humidifier () 2024-09-19 09:50:47 +02:00
Marc Mueller f0b9a806d1
Fix missing type[..] annotation in tests () 2024-07-20 11:11:16 +02:00
epenet 07f095aa42
Use service_calls fixture in core platform tests [a-l] () 2024-07-01 19:27:50 +02:00
epenet abb8c58b87
Fix consider-using-tuple pylint warnings in core tests () 2024-06-12 12:35:01 +02:00
Michael Hansen 87114bf19b
Fix exposure checks on some intents ()
* Check exposure in climate intent

* Check exposure in todo list

* Check exposure for weather

* Check exposure in humidity intents

* Add extra checks to weather tests

* Add more checks to todo intent test

* Move climate intents to async_match_targets

* Update test_intent.py

* Update test_intent.py

* Remove patch
2024-06-06 20:41:25 -05:00
epenet 7e62061b9a
Improve typing for `calls` fixture in tests (a-l) ()
* Improve typing for `calls` fixture in tests (a-l)

* More

* More
2024-05-29 09:06:48 +02:00
Sid 9bf87329da
Enable Ruff FLY002 rule ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-04-12 09:04:16 +02:00
Sid d5f883fbf0
Unignore Ruff PLR in tests ()
* Unignore Ruff PLR in tests

* Address review comments

* review comments

* fix import

* Update test_api.py

* Update test_api.py

* Update test_api.py
2024-04-01 11:11:59 +02:00
J. Nick Koston 82016ff528
Refactor recorder states tests ()
https://github.com/home-assistant/core/pull/113985#discussion_r1536596573
2024-03-23 15:41:12 -04:00
J. Nick Koston 952f47ab18
Combine recorder and frontend bootstrap step () 2024-03-22 13:50:39 -10:00
Sid 00ec7f11f0
Enable Ruff rule PT007 ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Sid 727581eea3
Add first batch of Ruff PT rules ()
* Add first batch of Ruff PT rules

* fix weather test

* Fix pilight test

* Update test_intent.py

* Update pilight test_init.py

* Update test_init.py
2024-03-18 13:26:14 +01:00
Joost Lekkerkerker 761933acfe
Improve lists in integrations [G-H] () 2024-03-13 17:25:27 +01:00
Marc Mueller 32f3f46542
Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
Marc Mueller c88b337600
Add empty line after module docstring [tests f-k] () 2024-03-08 14:50:04 +01:00
Jan Bouwhuis 066692506c
Fix unhandled exception on humidifier intent when available_modes is None () 2024-01-24 22:14:15 +01:00
Erik Montnemery c805ea7b4f
Include deprecated constants in wildcard imports () 2024-01-05 11:46:45 +01:00
J. Nick Koston 987663e4de
Fix missing backwards compatiblity layer for humidifier supported_features ()
fixes 
2024-01-03 19:41:50 -05:00
J. Nick Koston 931e90ab20
Humidifier platform back-compat for custom components without HumidifierEntityFeature () 2023-12-28 14:10:46 -10:00
Michael 321dc3984c
Add significant Change support for humidifier () 2023-12-23 10:56:51 +01:00
Robert Resch 28e4358c53
Deprecate deprecated humidifier constants () 2023-12-20 18:05:43 +01:00
Erik Montnemery 2e9a3e8c8e
Use real devices in humidifier device action tests () 2023-10-24 23:39:14 +02:00
Erik Montnemery 0e8bd9805a
Use real devices in humidifier device condition tests () 2023-10-24 23:34:31 +02:00
Erik Montnemery cedade15ef
Use real devices in humidifier device trigger tests () 2023-10-24 21:58:01 +02:00
Jan Bouwhuis fe7857c8ec
Add current_humidity device_trigger for humidity component ()
Add current_humidity device_trigger for humidity
2023-06-28 13:13:55 +02:00
Erik Montnemery 0fc51ac75a
Remove current humidity humidifier device trigger () 2023-06-27 19:55:59 +02:00
Erik Montnemery b12c5a5ba2
Use entity registry id in humidifier device actions () 2023-06-26 23:08:30 +02:00
Erik Montnemery e77a06412a
Use entity registry id in humidifier device conditions () 2023-06-26 18:13:48 +02:00
Erik Montnemery a338e7e242
Use entity registry id in toggle_entity device automations ()
* Use entity registry id in toggle_entity device automations

* Update tests

---------

Co-authored-by: J. Nick Koston <nick@koston.org>
2023-06-26 09:59:01 +02:00
Erik Montnemery 22e1feb223
Teach humidifier device trigger about entity registry ids () 2023-06-21 14:58:11 +02:00
Jan Bouwhuis a4399a4cb6
Add device trigger for humidifier current_humidity () 2023-06-20 22:57:44 +02:00
Erik Montnemery fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m () 2023-06-20 20:16:25 +02:00
Jan Bouwhuis ec98e22330
Add type hints for stub_blueprint_populate fixture ()
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
J. Nick Koston 48485fc2bf
Complete persistent notifications migration ()
* Complete migration of persistent notifications

Persistent notifications are no longer stored in
the state machine and no longer fire events

* Complete migration of persistent notifications

Persistent notifications are no longer stored in
the state machine and no longer fire events

* fixes

* fixes

* fixes

* ws test

* update tests

* update tests

* fix more tests

* fix more tests

* more fixes

* fix

* fix person

* fix person

* keep whitelist

* use singleton
2023-05-25 23:09:13 -04:00
Erik Montnemery 3cca338c6e
Improve blueprint test fixtures () 2023-05-25 13:45:19 +02:00
J. Nick Koston d0d4ab6056
Require a list of entity ids when fetching history () 2023-04-08 16:14:44 -10:00
J. Nick Koston 1c57339ec3
Refactor recorder tests to use recorder history API () 2023-03-11 21:51:16 -05:00
Erik Montnemery 9989a4787b
Fix recorder platform tests () 2023-02-17 08:22:15 -06:00
Franck Nijhof ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet 1e352b60df
Add type hints to integration tests (part 11) () 2023-02-13 14:22:49 +01:00
Erik Montnemery cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof 51a9f65a01
Clean up unnecessary registry mocks from Core tests () 2023-02-08 13:28:44 -06:00
epenet 37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
Franck Nijhof 57cf11f067
Enable Ruff PT015 () 2023-01-27 11:10:29 +01:00
Erik Montnemery 31a787558f
Ensure recorder test fixture is setup before hass fixture ()
* Ensure recorder test fixture is setup before hass fixture

* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik Montnemery 5f2b4001f3
Separate recorder database schema from other classes ()
* Separate recorder database schema from other classes

* fix logbook imports

* migrate new tests

* few more

* last one

* fix merge

Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
Franck Nijhof 69e622b327
Clean up accessing intent helpers via hass () 2022-05-17 20:33:51 +02:00
Erik Montnemery 28ebab9c5a
Simplify waiting for recorder in tests () 2022-04-25 12:04:47 +02:00
Erik Montnemery 982e314de6
Use recorder_mock in tests ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-22 19:29:44 -10:00
Erik Montnemery 5e50a8abd5
Mark device triggers from hidden or auxiliary entities as secondary ()
* Mark device triggers from hidden or auxiliary entities as secondary

* Update tests
2022-04-21 08:01:32 +02:00