1
mirror of https://github.com/home-assistant/core synced 2024-10-13 14:52:10 +02:00
ha-core/script
Robin df78eecc1b Adds folder_watcher component (#12918)
* Create watchdog_file_watcher.py

* Rename watchdog_file_watcher.py to folder_watcher.py

* Address a number of issues

* Adds filter

* Adds pattern matching

* Adds create_event_handler()

* Update folder_watcher.py

* Adds run_setup()

* Remove stop_watching()

* Adds shutdown()

* Update config to allow patterns on each folder

* Update to patterns from filters

* Adds watchdog

* Fix indents on schema

* Update folder_watcher.py

* Create test_file_watcher.py

* Fix lints

* Add test_invalid_path()

* Adds folder_watcher

* Update test_file_watcher.py

* Update folder_watcher.py

* Simplify config

* Adapt for new config

* Run observer.schedule() on EVENT_HOMEASSISTANT_START

* Amend Watcher removing entity and tidying startup

* Tidy config

* Rename process to on_any_event for consistency

* Rename on_any_event back to process

Using `on_any_event` resulted in 2 events being fired

* Update folder_watcher.py

* Fix return False on setup

* Update test_file_watcher.py

* Update folder_watcher.py

* Adds watchdog

* Undo adding watchdog

* Update test_file_watcher.py

* Update test_file_watcher.py

* Update test_file_watcher.py

* Update test_file_watcher.py

* Update test_file_watcher.py

* Add event

* Update test_file_watcher.py

* Update .coveragerc

* Update test_file_watcher.py

* Update test_file_watcher.py

* debug + join

* test event

* lint

* lint

* Rename test_file_watcher.py to test_folder_watcher.py

* hound

* Tidy test

* Further refine test

* Adds to test_all

* Fix test for py35

* Change test again

* Update test_folder_watcher.py

* Fix test

* Add watchdog to test

* Update folder_watcher.py

* add watchdog

* Update folder_watcher.py
2018-03-29 18:10:20 -07:00
..
bootstrap Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
dev_docker tradfri: Improve color temp support detection (#7211) 2017-04-21 23:32:51 -07:00
dev_openzwave_docker Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
gen_requirements_all.py Adds folder_watcher component (#12918) 2018-03-29 18:10:20 -07:00
inspect_schemas.py [core] Add 'packages' to the config (#5140) 2017-01-13 22:01:47 -08:00
lazytox.py Lint script tweaks (#13093) 2018-03-11 16:15:09 -04:00
lint Lint script tweaks (#13093) 2018-03-11 16:15:09 -04:00
lint_docker Speeds up lint and test in docker by keeping the cache between invocations. (#5177) 2017-01-05 09:45:14 +01:00
release Use twine for release 2018-03-26 16:16:42 -07:00
server Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
setup Reorganize lint travis builds (#10670) 2017-11-19 17:39:24 -08:00
test Removing asyncio.coroutine syntax from HASS core (#12509) 2018-02-25 03:38:46 -08:00
test_docker Fix a bunch of typos (#9545) 2017-09-23 17:15:46 +02:00
translations_develop Config flow translations (#13066) 2018-03-11 12:04:34 -07:00
translations_download Pin lokalise script to working version (#12965) 2018-03-07 09:46:21 -05:00
translations_download_split.py Translation cleanup (#12804) 2018-02-28 20:04:20 -08:00
translations_upload Pin lokalise script to working version (#12965) 2018-03-07 09:46:21 -05:00
translations_upload_merge.py Translation cleanup (#12804) 2018-02-28 20:04:20 -08:00
travis_deploy Support serving of backend translations (#12453) 2018-02-28 19:31:38 -08:00
update Improve development workflow in docker (#5079) 2017-01-02 22:04:09 +01:00
version_bump.py version should contain just 'b' not 'beta' (#13476) 2018-03-26 16:09:18 -07:00