cdce8p
3904d83c32
Extend partial reload to include packages ( #18884 )
...
* Merge packages after partial reload
* Remove merge from core reload & test
* Integrate merge in 'async_hass_config_yaml'
* Merge executors
2018-12-03 10:56:26 +01:00
Bram Kragten
b763c0f902
Extract ruamel.yaml to util with secrets, lovelace ws decorators ( #17958 )
...
* Extract ruamel.yaml to util, ws decorators, secrets
* lint
* Extend SafeConstructor
Somehow my last commit is gone after rebase...
* lint
* Woof...
* Woof woof...
* Cleanup type hints
* Update homeassistant/scripts/check_config.py
* lint
* typing
2018-10-31 13:49:54 +01:00
Ville Skyttä
ee696643cd
Isort preparations ( #16555 )
...
* Don't treat typing as an "in-between" module for import order
That was a < 3.5 era thing.
* Tighten scope of some pylint unused-import disables
To avoid isort moving a top level one around, undesirably broadening its
scope.
2018-09-11 11:21:48 +02:00
Martin Hjelmare
07840f5397
Fix check config packages key error ( #15840 )
...
* Fix packages deletion in check_config script
* The config key for packages is not present if core config validation
failed. We need to do a safe dict deletion using dict.pop.
* Add check_config test for bad core config
2018-08-17 05:28:00 +02:00
Ville Skyttä
eee9b50b70
Upgrade pylint to 2.0.1 ( #15683 )
...
* Upgrade pylint to 2.0.1
* Pylint 2 bad-whitespace fix
* Pylint 2 possibly-unused-variable fixes
* Pylint 2 try-except-raise fixes
* Disable pylint fixme for todoist for now
https://github.com/PyCQA/pylint/pull/2320
* Disable pylint 2 useless-return for now
https://github.com/PyCQA/pylint/issues/2300
* Disable pylint 2 invalid-name for type variables for now
https://github.com/PyCQA/pylint/issues/1290
* Disable pylint 2 not-an-iterable for now
https://github.com/PyCQA/pylint/issues/2311
* Pylint 2 unsubscriptable-object workarounds
* Disable intentional pylint 2 assignment-from-nones
* Disable pylint 2 unsupported-membership-test apparent false positives
* Disable pylint 2 assignment-from-no-return apparent false positives
* Disable pylint 2 comparison-with-callable false positives
https://github.com/PyCQA/pylint/issues/2306
2018-07-26 08:55:42 +02:00
Ville Skyttä
bf17ed0917
More pylint 2 fixes ( #15516 )
...
* Pylint 2 useless-import-alias fixes
* Pylint 2 chained-comparison fixes
* Pylint 2 consider-using-get fixes
* Pylint 2 len-as-condition fixes
2018-07-18 11:54:27 +02:00
Ville Skyttä
b92350fb55
Lint cleanup ( #15103 )
...
* Remove unneeded inline pylint disables
* Remove unneeded noqa's
* Use symbol names instead of message ids in inline pylint disables
2018-06-25 13:05:07 -04:00
Paulus Schoutsen
83d300fd11
Custom component loading cleanup ( #14211 )
...
* Clean up custom component loading
* Fix some tests
* Fix some stuff
* Make imports work again
* Fix tests
* Remove debug print
* Lint
2018-05-01 20:57:30 +02:00
Fabian Affolter
1d41321f8f
Upgrade colorlog to 3.1.4 ( #14132 )
2018-04-28 14:03:09 +02:00
Jonas Skoogh
c361b0c450
Check_config: Handle numbers correctly when printing config ( #13377 )
2018-03-30 22:50:08 +02:00
Otto Winter
27c1806897
Python 3.5 adjustments ( #13173 )
2018-03-15 13:10:54 +02:00
Johann Kellerman
f164a5a65f
Better errors for unknown secrets ( #13072 )
2018-03-11 12:51:03 +02:00
Johann Kellerman
40485a6e89
Ensure we have valid config AFTER merging packages #13015 ( #13038 )
...
* Ensure we have valid config AFTER merging packages #13015
* also fix packages
2018-03-10 10:02:04 -08:00
Johann Kellerman
6734c966b3
check_config script evolution ( #12792 )
...
* Initial async_check_ha_config_file
* check_ha_config_file
* Various fixes
* feedback - return the config
* move_to_check_config
2018-03-08 19:34:24 -08:00
Johann Kellerman
6ed765698a
Check_config await error ( #12722 )
...
* not awaited
* hounded
2018-02-27 12:29:17 -08:00
Julius Mittenzwei
16cb7388ee
Removing asyncio.coroutine syntax from HASS core ( #12509 )
...
* changed asyncio.coroutine syntax to new async def/await
* removed py34 from tox environment
* reverted some changes within entity.py
* -
* reverted changes within bootstrap.py
* reverted changes within discovery.py
* switched decorators
* Reverted change within aiohttp_client.py
* reverted change within logging.py
* switched decorators
* Await lock properly
* removed asyncio.coroutine from test
2018-02-25 03:38:46 -08:00
Paulus Schoutsen
8b9eab196c
Attempt fixing flakiness of check config test ( #12283 )
...
* Attempt fixing check_config script test flakiness
* Fix logging
* remove cleanup as Python will exit
* Make sure we don't enqueue magicmocks
* Lint
* Reinstate cleanup as it broke secret tests
2018-02-11 09:00:02 -08:00
Johann Kellerman
65c6f72c9d
check_config check bootstrap errors ( #12291 )
2018-02-10 23:40:48 -08:00
Ville Skyttä
cab6c694c5
Flake8 bugbear fixes ( #12072 )
...
* Don't use mutable argument defaults (bugbear B006)
* Use callable(x) instead of hasattr(x, '__call__') (bugbear B004)
* Remove/mark unused loop control variables (bugbear B007)
* Fix stripping protocol from kodi host name (bugbear B005)
* Fix plant daily history add default date (bugbear B008)
2018-01-30 14:44:05 -08:00
Robert Schütz
2b68bec428
check_config.py: allow colorlog==3.1. ( #11927 )
2018-01-26 10:43:55 -08:00
Fabian Affolter
0fe4245620
Allow usage of colorlog 3.0.1 ( #8885 )
2017-08-08 10:16:04 +02:00
Paulus Schoutsen
5779d64e98
Fix some issues for PyLint 1.7.2 ( #8356 )
...
* Fix some issues for PyLint 1.7.2
* More fixes
* Revert position change for cover
2017-07-05 20:02:16 -07:00
Fabian Affolter
cfc023e128
Don't use len(SEQUENCE) as condition value ( #7249 )
...
* Don't use len(SEQUENCE) as condition value
* Update volvooncall.py
2017-04-23 20:41:09 -07:00
Paulus Schoutsen
2650c73a89
Split bootstrap into bs + setup ( #6416 )
...
* Split bootstrap into bs + setup
* Lint
2017-03-05 10:41:54 +01: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
Pascal Vizeli
4e8d20328a
Fix check_config script. ( #5853 )
2017-02-10 08:51:08 -08:00
andrey-git
f774538e66
Check config before restarting ( #5609 )
...
* Check config before restarting.
* Make check_config on restart async
* don't check if notification service exists
* Use .communicate()
* Reduce the number of notifications. Add tests.
2017-02-07 01:19:08 -08:00
Johann Kellerman
3f2fdb97a0
check_config: Add support for packages ( #5574 )
2017-01-26 21:42:14 -08:00
Dale Higgs
a6f341f06a
Add exit code to check_config script ( #5471 )
2017-01-21 10:39:50 +03: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
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
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
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
Martin Hjelmare
986873834a
Fix mysensors white value ( #3508 )
...
* Fix turning on mysensors light with white value attribute in kwargs.
* Fix import order in check_config.py.
2016-09-24 23:45:01 +02:00
Johann Kellerman
de51cfbc07
Sorted yaml output for check_config ( #3354 )
...
* Consistent display of check_config dicts
* OrderedDict
* remove sorted
2016-09-23 00:10:19 -07:00
Marc Pabst
138205a019
Adding support for a white value ( #3338 )
...
* Update __init__.py
addedattribute "WHITE_VALUE" to improve support for RGBW devices
* Update services.yaml
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update __init__.py
shortened line
* Update __init__.py
* Update __init__.py
* Add mysensors RGBW and light tests
* Activate support for mysensors RGBW devices with support for
white_value attribute.
* Add white_value support in light demo platform.
* Add tests for white_value and more for light component.
* Add tests for light demo platform.
* Fix import order in check_config.
2016-09-20 21:26:40 -07:00
Johann Kellerman
e8ad76c816
Improve yaml fault tolerance and handle check_config border cases ( #3159 )
2016-09-08 22:20:38 +02:00
Johann Kellerman
37048919bf
Check config requirement fix ( #2999 )
...
* Check config requirement fix
2016-08-27 01:33:57 +02:00
Johann Kellerman
17631cd728
Check config script: various fixes ( #2967 )
...
🐬
2016-08-24 23:18:32 -06:00
Paulus Schoutsen
c9d5d1a417
Remove debug print
2016-08-22 21:44:58 -07:00
Johann Kellerman
14b034f452
Check config script ( #2657 )
...
* Add check_config, yaml linting script
* WIP: Start reusing some bootstrap methods for validation
* Start outputs
* Secrets, files and failed config
* requirements_all
* Fixes
* formatting
* Fix unit test after formatting
2016-08-22 21:42:05 -07:00