Commit graph

19 commits

Author SHA1 Message Date
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
Franck Nijhof
24fdd588fd
Code styling tweaks to the tests - Part 1 () 2023-01-20 13:52:46 +01:00
epenet
0ac581a0b1
Cleanup EntityFeature in tests () 2022-09-21 10:48:55 +02:00
Erik Montnemery
4655ed995e
Fix resetting of attributes in EntityRegistry.async_get_or_create ()
* Fix resetting of attributes in EntityRegistry.async_get_or_create

* Fix typing

* Fix resetting config entry

* Improve test

* Update tests
2022-08-30 21:07:50 +02:00
Erik Montnemery
150f173eed
Mark device conditions from hidden or auxiliary entities as secondary () 2022-04-20 21:41:59 +02:00
Ville Skyttä
9b437ef146
Remaining DeviceAutomationType bits ()
* Use DeviceAutomationType in missed tests/components/*

* Tighten device automation type hints
2021-12-21 20:05:48 +02:00
Ville Skyttä
5926961ed5
Use DeviceAutomationType in tests/components/[a-f]* () 2021-12-20 22:26:29 +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
23fad60769
Don't use template in cover device condition () 2021-11-09 12:43:21 +01:00
Erik Montnemery
59ef55c34f
Improve editing of device conditions referencing non-added cover () 2021-06-14 14:34:59 +02:00
Joakim Sørensen
2f10f59717
Block custom integrations with missing or invalid version () 2021-05-17 15:48:41 +02:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ()
* Unused pylint suppression cleanups

* Remove outdated pylint bug references

* Add flake8-noqa config and note to run it every now and then

* Add codes to noqa's

* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
Paulus Schoutsen
b3be708db6
Add default config if not there ()
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
2020-11-25 15:10:04 +01:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Christian Clauss
1d537ad416 Fix typo: serivce --> service () 2020-01-27 19:56:26 +01:00
Bas Nijholt
a3b605bb7d use isort to sort imports according to PEP8 for cover () 2019-12-08 22:28:00 +05:30
Erik Montnemery
7fee44b8c5 Add additional device conditions to cover ()
* Add additional device conditions to cover

* Add default value

* Add test

* Use numeric_state condition instead of template condition
2019-10-25 13:50:46 -07:00
Moritz Fey
96c0ad302f add device conditions for platform cover ()
* add device condition support to the cover integration

* remove TODO comment

* add strings.json
2019-10-12 13:08:45 -07:00