Pierre Ståhl
8111e3944c
Add basic backend support for a system log ( #10492 )
...
Everything logged with "warning" or "error" is stored and exposed via
the HTTP API, that can be used by the frontend.
2017-11-14 20:35:56 -08:00
Adam
3ea4691fce
Fix spelling error ( #10009 )
2017-10-21 21:56:19 +02:00
Paulus Schoutsen
ca54bbfcc9
RFC: Use bind_hass for helpers ( #9745 )
...
* Add Helpers bind_hass functionality
* Update other helpers
2017-10-08 08:17:54 -07:00
Paulus Schoutsen
ffb19381f1
Deprecate Python 3.4 support ( #9684 )
...
* Deprecate Python 3.4 support
* Update text
2017-10-05 21:47:51 -07:00
Ted Drain
26c98512c8
Polymer access to log file broken when using new log file command line ( #9437 )
...
* Changed api.py to use new log file name
* Only serve log file if logs are active
* Changed log file location to be in hass.data
2017-09-15 22:25:32 -07:00
Ted Drain
411c9620c1
Added log-file command line flag ( #9422 )
2017-09-13 21:22:42 -07:00
Fabian Affolter
879c816f5c
Update docstrings ( #8536 )
2017-07-18 16:23:57 +02:00
Martin Hjelmare
ba019c799a
Make deps directory persistent over upgrades ( #7801 )
...
* Use pip install --user if venv not active
* Set PYTHONUSERBASE to deps directory, when installing with --user
option.
* Reset --prefix option to workaround incompatability when installing
with --user option. This requires pip version 8.0.0 or greater.
* Require pip version 8.0.3.
* Do not delete deps directory on home assistant upgrade.
* Fix local lib mount and check package exist.
* Update and add tests
* Fix upgrade from before version 0.46
* Extract function to get user site
* Add function(s) to package util to get user site.
* Use async subprocess for one of the functions to get user site.
* Add function to package util to check if virtual environment is
active.
* Add and update tests.
* Update version for last removal of deps dir
* Address comments
* Rewrite package util tests with pytest
* Rewrite all existing unittest class based tests for package util as
test functions, and capitalize pytest fixtures.
* Add test for installing with target inside venv.
2017-07-13 19:26:21 -07:00
Paulus Schoutsen
f43db3c615
Replace executor with async_add_job ( #7658 )
...
* Remove executor
* Lint
* Lint
* Fix tests
2017-05-26 08:28:07 -07:00
Fabian Affolter
3ee4d1060f
Update docstrings ( #7361 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update tomato.py
* Update isy994.py
* Lint + fix tests
* Lint
2017-04-29 22:04:49 -07:00
Fabian Affolter
0298522fd5
Use four-digits year ( #7336 )
2017-04-27 09:30:34 -07:00
Paulus Schoutsen
90baa2ce4d
Add history to component priority list ( #7173 )
2017-04-19 09:15:18 -07:00
Paulus Schoutsen
a1208261a8
Load zwave panel ( #7127 )
...
* Load Z-Wave panel when component loads
* Update frontend
* Fix tests
2017-04-16 11:10:55 -07:00
Paulus Schoutsen
29f385ea76
Fix automations listening to HOMEASSISTANT_START ( #6936 )
...
* Fire EVENT_HOMEASSISTANT_START automations off right away while starting
* Actually have core state be set to 'starting' during boot
* Fix correct start implementation
* Test and deprecate event automation platform on start
* Fix doc strings
* Remove shutting down exception
* More strict when to mark an instance as finished
* Add automation platform to listen for start/shutdown
* When we stop we should wait till it's all done
* Fix testing
* Fix async bugs in tests
* Only set UVLOOP when hass starts from CLI
* This hangs normal asyncio event loop
* Clean up Z-Wave node entity test
2017-04-05 23:23:02 -07:00
Paulus Schoutsen
96e22c7b41
Remove event decorators ( #6634 )
2017-03-15 14:46:57 +01:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01:00
Pascal Vizeli
8232f1ef65
Cleanup async handling ( #6388 )
...
* Cleanups unneeded blocks
* Cleanup bootstrap
* dedicated update_ha_state
* Fix imap_email_content
* fx tests
* Fix lint & spell
2017-03-04 15:10:36 -08:00
Paulus Schoutsen
84f30d9ef8
Bootstrap tweaks tests ( #6326 )
...
* Update strings/fix component not found message.
* Fix tests
* More tweak text
2017-02-28 23:42:31 -08:00
Johann Kellerman
ac49298c8d
Log errors when loading yaml ( #6257 )
2017-03-01 06:56:23 +02:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Paulus Schoutsen
58eb32bce4
Random test fixes ( #6195 )
...
* Store persistent errors in hass (speeds up tests)
* Fix sleepiq test dependency on test order
* Fix sleepiq validation
2017-02-23 21:44:47 -08:00
Paulus Schoutsen
f29ee24b72
Do not allow config dependency ( #6036 )
...
* Do not allow config dependency
* Prevent config in discovery
* Migrate to blacklist
2017-02-18 11:31:37 -08:00
Pascal Vizeli
41849eab06
Core cleanup: two stage shutdown ( #5876 )
...
* Core cleanup: two stage shutdown
* fix spell
* fix
* add async logger to close
* change aiohttp to use CLOSE
* address paulus comments
* Fix tests
* Add unittest
2017-02-13 06:24:07 +01:00
Paulus Schoutsen
c54517de90
Convert config.components to a set ( #5824 )
2017-02-09 20:21:57 +02:00
Pascal Vizeli
2cbed9cd96
Move signal handling out of core to bootstrap ( #5815 )
...
* Move signal handling out of core to bootstrap
* Fix tests
2017-02-08 21:58:45 -08:00
happyleavesaoc
f17efc2168
log formats match ( #5456 )
2017-01-19 21:31:44 -08:00
Johann Kellerman
9f765836f8
[core] Add 'packages' to the config ( #5140 )
...
* Initial
* Merge dicts and lists
* feedback
* Move to homeassistant
* feedback
* increase_coverage
* kick_the_hound
2017-01-13 22:01:47 -08:00
Johann Kellerman
b67cce7215
Add correct line numbers for yaml include directives ( #5303 )
2017-01-13 21:13:17 -08:00
Pascal Vizeli
50c8224365
Bugfix async log handler ( #4954 )
...
* Bugfix async log handler
* fix boostrap test
* Use hass.data for store handler and cleanup on async_stop
* Update bootstrap.py
2016-12-17 12:21:52 -08:00
Pascal Vizeli
6d6abab358
Async logging file handler ( #4901 )
...
* Async logging file handler
* add time rotation handle
* new layout
* address paulus comments
* fix lint
2016-12-16 15:51:06 -08:00
Paulus Schoutsen
b35fa4f1c1
Finish all tasks before setup phase is done ( #4606 )
2016-11-30 13:02:45 -08:00
Paulus Schoutsen
d930c399fe
Better locking while setting up components + discovery ( #4463 )
2016-11-19 08:18:33 -08:00
Pascal Vizeli
ba2ea35089
Add logging to platform/component setup ( #4300 )
...
* Add timeout to platform/component
* Revert "Add timeout to platform/component"
This reverts commit 280a311e48
.
* Add logging data
* Change log message with paulus comments
2016-11-10 18:46:31 +01:00
Pascal Vizeli
ece58ce78f
Remove ThreadPool with async executor ( #4154 )
...
* Remove ThreadPool with async executor
* Fix zigbee
* update unittest
* fix remote api
* add pending task to remote
* fix lint
* remove unused import
* remove old stuff for lazy tests
* fix bug and add a exception handler to executor
* change executor handling
* change to wait from gather
* fix unittest
2016-11-05 09:27:55 -07:00
Pascal Vizeli
fcf318cf53
Bugfix windows have a other default loop now ( #4195 )
...
* Bugfix windows have a other default loop now
* fix handling with 3.4.2 that not support ensure_future
* make the same as ensure_future does
* fix spell
* fix lazy test
2016-11-03 11:07:47 +01:00
Johann Kellerman
0d14920758
Component setup error messages with markdown ( #3919 )
...
* Remove_dev_link_async
* callback
2016-11-02 19:31:09 -07:00
Paulus Schoutsen
7f699b4261
Lazy initialise the worker pool ( #4110 )
...
* Lazy initialise the worker pool
* Minimize pool initialization in core tests
* Fix tests on Python 3.4
* Remove passing in thread count to mock HASS
* Tests: Allow pool by default for threaded, disable for async
* Remove JobPriority for thread pool
* Fix wrong block_till_done
* EmulatedHue: Remove unused test code
* Zigbee: do not touch hass.pool
* Init loop in add_job
* Fix core test
* Fix random sensor test
2016-10-31 08:47:29 -07:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Paulus Schoutsen
4163e55dbd
Introducing hass.data ( #4121 )
...
* Hello hass.data
* Migrate setup_component to hass.data
2016-10-29 14:51:17 -07:00
Paulus Schoutsen
9ea1101aba
Fix bootstrap circular imports ( #4108 )
...
* Fix bootstrap circular imports
* fix test
* Lint
2016-10-29 12:54:47 -07:00
Pascal Vizeli
825ee3612d
fix some comments spell ( #4082 )
...
* fix some comments
* fix in an executor
* address paulus comments
2016-10-28 21:26:52 +02:00
Pascal Vizeli
d5368f6f78
Async bootstrap / component init ( #3991 )
...
* Async bootstrap
* Adress comments
* Fix tests
* More fixes
* Tests fixes
2016-10-27 00:16:23 -07:00
Per Sandström
0dfcf40d37
[WIP] Config validation error line numbers ( #3976 )
...
Config validation error line numbers
2016-10-25 20:13:32 +02:00
Paulus Schoutsen
519d9f2fd0
async HTTP component ( #3914 )
...
* Migrate WSGI to asyncio
* Rename wsgi -> http
* Python 3.4 compat
* Move linting to Python 3.4
* lint
* Lint
* Fix Python 3.4 mock_open + binary data
* Surpress logging aiohttp.access
* Spelling
* Sending files is a coroutine
* More callback annotations and naming fixes
* Fix ios
2016-10-23 23:48:01 -07:00
Sean Dague
daea93d9f9
Suppress requests/urllib3 connection pool log messages ( #3854 )
...
requests/urllib3 is notorious for using the INFO log level for very
DEBUG kinds of information. Given the configurability of python
logging it's actually pretty easy to just set requests to WARN by
default. This cleans out a bunch of largely unuseful log lines from
home assistant output.
2016-10-17 21:14:10 +02:00
Johann Kellerman
cb322f72db
Add persistent notifications to bootstrap ( #3738 )
...
* Add persistent notifications to bootstrap
* Rebase, Fix test
2016-10-13 09:09:07 -07:00
Johann Kellerman
7b40a641ec
Continue on invalid platforms and new setup_component unit tests ( #3736 )
2016-10-08 11:27:35 -07:00
Paulus Schoutsen
4b8bc90d16
Limit worker pool to 10 threads ( #3560 )
...
* Limit worker pool to 10 threads
* Comment evdev in requirements
* Allow skipping RFXtrx tests locally
* Fix worker pool size tests
* lol whut
2016-09-28 00:05:38 -07:00
Fabian Affolter
a084232cf5
Add link to error message ( #3530 )
2016-09-27 23:59:34 -07:00
Johann Kellerman
9631179126
Use voluptuous for input_slider, input_boolean, input_select ( #3256 )
...
* Use voluptuous for input slider
* floats
* _setup_component
* Imperative mood
* CONFIG_SCHEMA
* None returns empty ensure_list
* allow_extra
* bool
* restore ensure_list behaviour
2016-09-23 00:12:11 -07:00