Commit graph

46 commits

Author SHA1 Message Date
Ville Skyttä
e7b6037419
Remove unnnecessary pylint configs from components [e-l]* () 2023-08-25 09:46:34 +02:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ()
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05: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
89e4ee5320
Add type hints to integration tests (part 8) () 2023-02-13 11:13:48 +01:00
epenet
7a4d15a657
Add type hints to integration tests (f-g) () 2023-02-08 13:33:52 +01:00
G Johansson
b3c5c6ae9c
Add sensor to group () 2023-01-24 20:12:27 +01:00
G Johansson
68dd2802a1
Add remove entity in group.set service ()
* Group set remove entities

* simplify

* Add test

* Fix test
2023-01-23 15:00:40 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint () 2023-01-22 17:26:24 +01:00
epenet
a809e18559
Apply hass-relative-import to tests (d-h) () 2022-09-19 09:31:57 +02:00
Erik Montnemery
4435c641de
Enforce RegistryEntryHider in entity registry () 2022-06-08 12:36:43 -07:00
Jeff Rescignano
0720b0f891
Add all option to light group ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-22 16:09:18 +01:00
Erik Montnemery
1b955970f8
Allow hiding and unhiding group members () 2022-03-22 12:14:34 +01:00
Erik Montnemery
b99934f62f
Small tweaks of group tests () 2022-03-15 18:39:18 +01:00
Erik Montnemery
3323263c94
Flip behavior for grouped locks () 2021-12-22 12:14:45 +01:00
Franck Nijhof
5a2b5fe7c5
Yoda assertion style removed is () 2021-03-20 13:55:10 +01:00
Franck Nijhof
8a56dbf587
Add flake8 comprehensions checks to pre-commit & CI () 2021-03-19 13:41:09 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Tim Werner
3f623ad453
Rewrite group unittest to pytest style () 2020-10-23 12:05:07 +02:00
J. Nick Koston
e03b3e2310
Restore group support to plant entities () 2020-10-09 08:37:27 +02:00
J. Nick Koston
896f64d02b
Fix group tests when run in parallel () 2020-10-08 00:01:33 -05:00
J. Nick Koston
78dfaa72a2
Ensure lights added after group is created have the correct state () 2020-10-03 21:29:41 +02:00
J. Nick Koston
42ad36e9f8
Switch group to use None for the state unknown case () 2020-09-30 17:25:50 +02:00
J. Nick Koston
9ccebdb8d5
Refactor group to extend domains that can be grouped ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-30 09:13:53 -05:00
J. Nick Koston
3e9963a216
Overcome group concurrent setup limitation ()
With a lot of groups the limitation that groups
had to be setup one at a time could account for
the bulk of startup time.
2020-09-02 10:14:16 +02:00
J. Nick Koston
4a5a09a0e9
Speed up group setup () 2020-07-21 17:29:57 -07:00
J. Nick Koston
4acc6f333e
Improve scalability of state change event routing () 2020-06-27 14:46:45 -07:00
Paulus Schoutsen
c33edbe5bb
Use TestCase.addCleanup () 2020-06-08 12:26:40 -07:00
Paulus Schoutsen
2af984917e
Use asynctest-mock in most places ()
* Use asynctest-mock in most places

* Fix broken patch in pilight
2020-05-03 11:27:19 -07:00
springstan
eae21be5b9
Improve string formatting v6 () 2020-04-07 23:14:28 +02:00
Franck Nijhof
03dd92d51b
Use set literals in tests () 2020-04-05 02:20:09 +02:00
springstan
ad102b3840
Use f-strings in integrations starting with "F"and"G" ()
* Use f-strings in integrations starting with F

* Use f-strings in tests for integrations starting with F

* Use f-strings in integrations starting with G

* Use f-strings in tests for integrations starting with G

* Fix pylint error

* Fix broken test
2020-02-24 17:54:20 -08:00
Franck Nijhof
2ad1f7fd02
Remove states UI options in group integration () 2020-02-20 08:26:41 -08:00
Paulus Schoutsen
5fdc60e067
Add Safe Mode ()
* Store last working HTTP settings

* Add safe mode

* Fix tests

* Add cloud to safe mode

* Update logging text

* Fix camera tests leaving files behind

* Make emulated_hue tests not leave files behind

* Make logbook tests not leave files behind

* Make tts tests not leave files behind

* Make image_processing tests not leave files behind

* Make manual_mqtt tests not leave files behind
2020-01-14 13:03:02 -08:00
Franck Nijhof
1e3822bdd7 Migrate group tests from coroutine to async/await () 2020-01-02 14:22:49 -06:00
Bas Nijholt
d0c7db548f use isort to sort imports according to PEP8 for group () 2019-12-09 09:39:26 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ()
* Convert core tests

* Convert component tests to use pytest assert

* Lint 🤷‍♂️

* Fix test

* Fix 3 typos in docs
2018-10-24 12:10:05 +02:00
Daniel Perna
9d56730b8d Add optional "all" parameter for groups ()
* Added optional mode parameter

* Cleanup

* Using boolean configuration

* Fix invalid syntax

* Added tests for all-parameter

* Grammar

* Lint

* Docstrings

* Better description
2018-10-09 10:14:55 +02:00
cdce8p
f879ac0993 Remove service helper (6) ()
* Update automation

* Update group

* Async_create_task
2018-09-27 23:14:09 +02:00
cdce8p
e2a56721d3 Remove service helper (3) ()
* Update duckdns

* Update google_assistant

* Update group

* Update homematic

* Update image_processing

* Update input_boolean

* Update input_number

* Update input_select

* Update input_text
2018-09-26 08:50:05 +02:00
Ville Skyttä
dbd0763f83 Grammar and spelling fixes () 2018-08-19 22:29:08 +02:00
Andrey
140a874917 Add typing to homeassistant/*.py and homeassistant/util/ ()
* Add typing to homeassistant/*.py and homeassistant/util/

* Fix wrong merge

* Restore iterable in OrderedSet

* Fix tests
2018-07-23 10:24:39 +02:00
Anders Melchiorsen
dd67192057 Keep auto groups during group reload ()
* Keep auto groups during group reload

* Make protected member public

* Add test
2018-03-02 11:29:49 -08:00
Paulus Schoutsen
183e0543b4
Clean up entity component ()
* Clean up entity component

* Lint

* List -> Tuple

* Add Entity.async_remove back

* Unflake setting up group test
2018-01-22 22:54:41 -08:00
randellhodges
60ce2b343d Tracking all groups to allow changing of existing groups ()
* Tracking all groups to allow changing of existing groups

* Unit tests

* Fix flake8 warnings in test
2018-01-10 14:13:22 -08:00
Paulus Schoutsen
f7609e9cb1 Move group services into their own YAML ()
* Move group services into their own YAML

* Fix lint

* Move persistent notification to package
2017-10-01 23:18:10 -07:00
Renamed from tests/components/test_group.py (Browse further)