1
0
mirror of https://github.com/home-assistant/core.git synced 2025-05-10 00:49:17 +00:00

25 Commits

Author SHA1 Message Date
Franck Nijhof
298f059488
Revert "Remove deprecated supported features warning in ..." (multiple) () 2025-01-07 06:53:14 +00:00
epenet
b2ac16e95f
Remove deprecated supported features warning in CoverEntity ()
Cleanup magic numbers for cover supported features
2024-12-05 21:18:45 +01:00
Robert Resch
4d27a32905
Remove deprecated cover constants () 2024-11-28 12:14:25 +01:00
G Johansson
666e8e133e
Cover state is enum ()
* 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
epenet
975363b660
Add missing hass type hint in component tests (c) () 2024-08-18 15:35:31 +02:00
Marc Mueller
f0b9a806d1
Fix missing type[..] annotation in tests () 2024-07-20 11:11:16 +02:00
epenet
b8e57f6174
Use relative imports in tests [a-i] () 2024-06-10 12:52:34 +02:00
vexofp
8ba1340c2e
Clarify cover toggle logic; prevent opening when already open ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-18 14:58: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
Jan-Philipp Benecke
34cf0c5721
Use setup_test_component_platform func for cover entity component tests instead of hass.components ()
* Use `mock_platform` for cover entity component tests instead of `hass.components`

* Remove setup fixture and use helper function

* Remove is_on from MockCover

* Run ruff

* Do not override state in `MockCover` in cover tests

* Remove is_on from MockCover
2024-03-27 12:20:19 +01:00
Joost Lekkerkerker
c75342bd9a
Improve lists in integrations [C-D] () 2024-03-11 18:58:35 +01:00
Marc Mueller
38adfbf1a3
Add empty line after module docstring [tests a-e] () 2024-03-08 08:50:25 -05:00
vexofp
3c53693fe3
Prevent toggle from calling stop on covers which do not support it ()
* Prevent toggle from calling stop on covers which do not support it

* Update homeassistant/components/cover/__init__.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-01-09 12:32:27 +01:00
Erik Montnemery
c805ea7b4f
Include deprecated constants in wildcard imports () 2024-01-05 11:46:45 +01:00
J. Nick Koston
7051f28547
Add deprecation warning for cover supported features when using magic numbers () 2023-12-29 08:34:08 +01:00
Robert Resch
9830f77e9e
Deprecate deprecated cover constants () 2023-12-20 18:04:44 +01:00
epenet
9f688a564f
Add type hints to integration tests (part 4) () 2023-02-11 08:26:13 +01:00
Franck Nijhof
cf371ea8dd
Remove deprecated base entity classes ()
* Remove deprecated base entity classes

* Clean up tests
2021-12-05 13:53:52 +01:00
Oliver Gruß
eec84ad71e
Mqtt cover toggle add stop function ()
* Change existing toggle to add new function

* Fixed using old property method to using actual protected variable.

* Adding service tests to new cover toggle function

* Working on comments from Pull Request 59233

* Adjust existing tests to fit new fake cover setup

* MockCover is calling state method of MockEntity but should call it from CoverEntity

* using different entity to get back test coverage
2021-11-10 09:03:20 +01:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity () 2020-04-25 18:07:15 +02:00
Paulus Schoutsen
d1aa0cea97
Move intent registration to own integration ()
* Move intent registration to own integration.

* Lint
2019-12-01 14:12:57 -08:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
65432ba552 Move core stuff into Home Assistant integration ()
* Move core stuff into Home Assistant integration

* Lint
2019-03-26 13:38:32 +01:00
Ville Skyttä
37ccf87516 Remove unnecessary executable permissions () 2018-07-14 23:03:36 +02:00
Tod Schmidt
bf44dc422c Added HassOpenCover and HassCloseCover intents ()
* Added intents to cover

* Added test for cover intents

* Style fixes

* Reverted reversions

* Async fixes

* Woof

* Added conditional loading

* Added conditional loading

* Added conditional loading

* Moved tests, fixed logic

* Moved tests, fixed logic

* Pylint

* Pylint

* Refactored componenet registration

* Refactored componenet registration

* Lint
2018-03-30 17:22:48 -07:00