Commit graph

248 commits

Author SHA1 Message Date
J. Nick Koston
e880f1c8f9
Index config entries by domain () 2021-09-17 10:39:00 -10:00
J. Nick Koston
4bde4504ec
Add api to device_automation to return all matching devices () 2021-08-10 14:21:34 -05:00
Erik Montnemery
4d32e1ed01
Minor improvements of MQTT typing ()
* Minor improvements of MQTT typing

* Tweak
2021-07-06 14:38:48 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ()
* Make system options future proof

* Update tests

* Add types
2021-06-01 22:34:31 +02:00
J. Nick Koston
bf2d40adfe
Migrate from pytz to python-dateutil ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-07 22:46:26 -07:00
Dermot Duffy
809c1394d4
Enable mypy for motionEye (aye aye!) () 2021-05-04 08:19:41 +02:00
Franck Nijhof
c68b259bd3
Cleanup of unused connection_class logic ()
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Paulus Schoutsen
265fdea83b
Allow config entries to store a reason () 2021-04-23 09:23:43 +02:00
Alan Tse
125161df6b
Only raise integrationnotfound for dependencies ()
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-04-01 11:30:52 -07:00
Franck Nijhof
52475c108f
Make integration setup optional () 2021-03-29 13:53:47 -07:00
J. Nick Koston
3f2ca16ad7
Index config entries by id () 2021-03-21 21:44:29 -07:00
Franck Nijhof
8a56dbf587
Add flake8 comprehensions checks to pre-commit & CI () 2021-03-19 13:41:09 +01:00
Marc Mueller
4cb7718192
Update typing 16 () 2021-03-18 22:58:19 +01:00
Marc Mueller
54d1e9985f
Update typing 15 () 2021-03-18 15:13:22 +01: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
557ec374f1
Convert discovery helper to use dispatcher () 2021-02-24 13:37:31 -08:00
Erik Montnemery
5e26bda52d
Add support for disabling config entries () 2021-02-20 19:21:39 -08:00
Erik Montnemery
ed31cc363b
Wait for registries to load at startup ()
* Wait for registries to load at startup

* Don't decorate new functions with @bind_hass

* Fix typing errors in zwave_js

* Load registries in async_test_home_assistant

* Tweak

* Typo

* Tweak

* Explicitly silence mypy errors

* Fix tests

* Fix more tests

* Fix test

* Improve docstring

* Wait for registries to load
2021-02-11 17:36:19 +01:00
Erik Montnemery
58b4a91a5b
Test that variables are passed to wait_for_trigger script action () 2021-02-09 00:34:18 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Christopher Gramberg
c5fdde2a94
Convert filter tests to use pytest style () 2020-12-17 22:08:35 +01:00
Paulus Schoutsen
ea55051161
Stub finding custom integrations in tests () 2020-11-27 12:53:16 +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
819dd27925
Automatically clean up executor as part of closing loop () 2020-11-16 15:43:48 +01:00
Paulus Schoutsen
9f4480a634
Add system health streaming updates () 2020-11-10 22:45:59 +01:00
Franck Nijhof
6e9b65405a
Disable legacy templates by default () 2020-11-08 16:11:38 +01:00
Anders Melchiorsen
650c57db5b
Fix async_track_utc_time_change firing too early () 2020-11-05 16:34:56 +01:00
Paulus Schoutsen
21e9e7c5c2
Default legacy templates to true ()
* Default legacy templates to true

* Disable legacy_templates in tests

Co-authored-by: Franck Nijhof <git@frenck.dev>
2020-10-28 16:58:16 +01:00
Paulus Schoutsen
440570244d
Don't swallow all errors when checking for config validator platform () 2020-10-19 17:09:57 +02:00
Franck Nijhof
f83f3c927a
Fix local media browser source conflicting with local www folder () 2020-09-16 21:38:40 +02:00
Franck Nijhof
ff0562ad1e
Add media dirs core configuration ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-16 15:28:25 +02:00
Paulus Schoutsen
51a63c1fc4
Drop last bits of asyncio.coroutine () 2020-08-26 16:57:52 +02:00
Joakim Plate
15db2225da
async_get_instance was not reentrant during await () 2020-08-12 22:35:24 +02:00
Phil Bruckner
4c8c8a8c99
Fix async_fire_time_changed in tests/common.py () 2020-08-09 22:26:35 -05:00
J. Nick Koston
60009ec2f9
Use event loop scheduling for tracking time patterns ()
* Use event loop scheduling for tracking time patterns

* make patching of time targetable

* patch time tests since time can tick to match during the test

* fix more tests

* time can only move forward

* time can only move forward

* back to 100% coverage

* simplify since the event loop time cannot move backwards

* simplify some more

* revert simplify

* Revert "revert simplify"

This reverts commit bd42f232f6.

* Revert "simplify some more"

This reverts commit 2a6c57d514.

* Revert "simplify since the event loop time cannot move backwards"

This reverts commit 3b13714ef4.

* Attempt another simplify

* time does not move backwards in the last two

* remove next_time <= now check

* fix previous merge error
2020-07-20 20:18:31 -10:00
J. Nick Koston
6ea5c8aed9
Index the device registry () 2020-07-19 23:32:05 -07:00
J. Nick Koston
890562e3ae
Index the entity registry () 2020-07-19 22:52:41 -07:00
Paulus Schoutsen
f49ce5d1b4
Protect loop set default executor ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-06 15:58:53 -07:00
J. Nick Koston
89a9634d35
Use eventloop for scheduling ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-29 09:39:24 -07:00
Erik Montnemery
4e77969f5e
Drop use of mock_mqtt_component ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-06-23 10:17:22 -07:00
Erik Montnemery
a2e2c35011
Use pytest for more MQTT tests ()
* Use pytest for more MQTT tests

* Address review comments

* Break out PAHO client mock in separate fixture.

* tweak.
2020-06-22 22:02:29 +02:00
Paulus Schoutsen
5642027ffb
Improve after_dependencies handling () 2020-06-19 17:24:33 -07:00
Erik Montnemery
7722e417ad
Stable device id when a deleted device is restored ()
* Stable device id when a deleted device is restored.

* Tweak

* Store only basic data for deleted devices

* Simplify code

* Simplify code

* Address review comments.

* Improve test

* Fix missing save
2020-06-02 21:22:08 +02:00
Paulus Schoutsen
76f392476b
Use a future for mock coro () 2020-04-30 16:31:00 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Paulus Schoutsen
454c5d824a
Attempt to fix CI () 2020-04-28 10:31:22 -07:00
David F. Mulcahey
8b0a0ee521
Don't write storage to disk while stopping ()
* Don't write storage to disk while stopping

* rework change

* lint

* remove delay save and schedule final write at stop

* update tests

* fix test component using private methods

* cleanup

* always listen

* use stop in restore state again

* whitelist JSON exceptions for later

* review comment

* make zwave tests use mock storage
2020-04-02 10:25:28 -07:00
Paulus Schoutsen
b10319f69e
Convert TTS tests to async ()
* Convert TTS tests to async

* Address comments
2020-04-02 18:55:34 +02:00
Paulus Schoutsen
deda2f86e7
Allow managing Lovelace storage dashboards ()
* Allow managing Lovelace storage dashboards

* Make sure we do not allow duplicate url paths

* Allow setting sidebar to None

* Fix tests

* Delete storage file on delete

* List all dashboards
2020-02-28 12:43:17 -08:00
Erik Montnemery
7e387f93d6
Add MQTT WS command to remove device ()
* Add MQTT WS command to remove device

* Review comments, fix test

* Fix tests
2020-02-24 20:46:02 -08:00