Franck Nijhof
fa09cf663e
Update black to 22.1.0 ( #65788 )
2022-02-05 14:19:37 +01:00
Erik Montnemery
d4310f0d70
Remove groups.yaml from default config ( #63366 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-04 23:16:08 -08:00
Ville Skyttä
1ec8619687
Make core config source an enum ( #61966 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-12-19 18:02:52 +01:00
Erik Montnemery
d18c250acf
Add minor version support to storage.Store ( #59882 )
2021-11-18 17:15:40 +01:00
Paulus Schoutsen
952d11cb03
Ensure internal/external URL have no path ( #54304 )
...
* Ensure internal/external URL have no path
* Fix comment typo
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-09 09:38:09 +02:00
Paulus Schoutsen
8377b557da
Packages to support config platforms ( #54085 )
2021-08-05 13:11:01 -07:00
Franck Nijhof
1968b95829
Add currency core configuration ( #53541 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-07-28 08:55:58 +02:00
Franck Nijhof
c5383219f1
Remove stale debug statements from tests ( #51059 )
2021-05-25 11:52:20 +02:00
J. Nick Koston
bf2d40adfe
Migrate from pytz to python-dateutil ( #49643 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-07 22:46:26 -07:00
Joakim Sørensen
3088f063d2
Don't overwrite existing files when generating configuration ( #49815 )
2021-04-28 17:15:04 +02:00
Franck Nijhof
89e7983ee0
Add Blueprint foundation to Scripts ( #48621 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-04-27 15:15:38 -07:00
J. Nick Koston
500cb17298
Ensure HomeAssistant can still restart when a library file is missing ( #46664 )
2021-02-19 22:22:48 -08:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Paulus Schoutsen
594e905742
Remove invalidation_version from deprecated ( #44156 )
...
* Remove invalidation_version from deprecated. We don't follow up and just hurts releases
* Revert change to ZHA
2020-12-12 22:24:16 +01:00
Paulus Schoutsen
440570244d
Don't swallow all errors when checking for config validator platform ( #42058 )
2020-10-19 17:09:57 +02:00
Franck Nijhof
ee914366a8
Add native Python types support to templates ( #41227 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-10-07 00:05:52 +02:00
Bram Kragten
510e90803e
Exclude media_dirs from YAML config check ( #41299 )
2020-10-05 22:09:47 +02:00
Franck Nijhof
f83f3c927a
Fix local media browser source conflicting with local www folder ( #40151 )
2020-09-16 21:38:40 +02:00
Franck Nijhof
ff0562ad1e
Add media dirs core configuration ( #40071 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-09-16 15:28:25 +02:00
Jason Hunter
f2b3e63ff6
Media Source implementation for Chromecast ( #39305 )
...
* Implement local media finder and integrate into cast
* update to media source as a platform
* Tweak media source design
* fix websocket and local source
* fix websocket schema
* fix playing media
* Apply suggestions from code review
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Add resolve_media websocket
* Register that shit
* Square brackets
* Sign path
* add support for multiple media sources and address PR review
* fix lint
* fix tests from auto whitelisting config/media
* allow specifying a name on the media source
* add tests
* fix for python 3.7
* Apply suggestions from code review
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* add http back to cast and remove guess_type from executor as there is no i/o
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-09-04 11:16:29 -04:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Paulus Schoutsen
8ed1a29c82
Drop white blacklist pt1 ( #37816 )
2020-07-13 17:43:11 +02:00
J. Nick Koston
152a80abed
Complete deprecation of hidden attribute (ATTR_HIDDEN) ( #37041 )
2020-06-23 17:05:32 -05:00
Franck Nijhof
0146f35687
Fix packages when config schema is fully deprecated ( #36674 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-06-11 10:59:52 -07:00
Franck Nijhof
2223592486
Add get_url helper, deprecate base_url ( #35224 )
2020-05-08 02:29:47 +02:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 ( #34901 )
2020-04-30 13:29:50 -07:00
Paulus Schoutsen
a2fab264c4
Fix identifying Plex schema when used in packages ( #34651 )
2020-04-24 09:52:23 -07:00
Franck Nijhof
60bc517d01
Collection of core tests improvements ( #33757 )
...
* Collection of core tests improvements
* Added some more
* Fix aiohttp client response release
2020-04-07 09:33:23 -07:00
Franck Nijhof
98a2efcbab
Collection of random (mainly) test improvements ( #33733 )
2020-04-06 12:51:48 +02:00
Paulus Schoutsen
b6d9454b54
Fix package default extraction ( #33071 )
2020-03-20 20:27:37 -07:00
Paulus Schoutsen
d16d44d3e7
Add negative tests for identify schema for packages ( #33050 )
2020-03-20 13:34:56 -07:00
Paulus Schoutsen
c3c5cc9ae7
Fix zones in packages ( #33027 )
2020-03-19 20:45:26 -07:00
Paulus Schoutsen
fbbb29a6ec
Catch unexpected exceptions when validating config ( #31795 )
2020-02-13 22:43:07 +01:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Ville Skyttä
5e2ba2eb77
Enable some more bandit checks ( #30857 )
...
* Enable B108 (hardcoded tmp dir), address findings
* Enable B602 (subprocess popen with shell), address findings
* Enable B604 (start process with shell), address findings
* Enable B306 (mktemp), B307 (eval), and B325 (tempnam), no issues to address
2020-01-20 18:44:55 +02:00
Paulus Schoutsen
5fdc60e067
Add Safe Mode ( #30723 )
...
* 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
Ville Skyttä
fa4fa30461
Various string cleanups ( #30435 )
...
* Remove some unnecessary string concatenations
* Replace some simple str.formats with f-strings
* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Bas Nijholt
f60125b5c9
Sort imports according to PEP8 for 'tests' ( #29791 )
2019-12-09 16:52:24 +01:00
Bram Kragten
e419689229
Add config endpoint for scene ( #28429 )
...
* Add config endpoint for scene
* Add scenes to default config
* Fix test and add context to websocket service call
* Update scene.py
* Add tests
2019-11-04 12:38:18 -08:00
Paulus Schoutsen
93f9afcd21
Fix config imports ( #27669 )
...
* Fix config imports
* Remove old migration
* Remove migrate tests
2019-10-15 16:15:26 -07:00
Paulus Schoutsen
3231e22ddf
Remove direct authentication via trusted networks or API password ( #27656 )
...
* Remove direct authentication via trusted networks and API password
* Fix tests
2019-10-14 14:56:45 -07:00
Johann Kellerman
8b9d0593b1
Allow components with empty list config (i.e. person) in packages ( #25827 )
...
* Fix #23424
* mypy Lists
2019-08-10 16:30:33 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Johann Kellerman
2e26f0bd2b
Add check_config helper ( #24557 )
...
* check_config
* no ignore
* tests
* try tests again
2019-07-10 11:56:50 -07:00
Paulus Schoutsen
929f3c2594
Use loose version ( #24394 )
2019-06-08 08:19:00 -07:00
Paulus Schoutsen
0b70419859
Remove deps folder in config when on Docker ( #24284 )
...
* Remove deps folder in config
* Fix tests
* Fix tests with docker check
2019-06-03 12:37:27 -07:00
Paulus Schoutsen
b90636f640
Update home zone when core config updated ( #24237 )
...
* Update home zone when core config updated
* Lint
2019-05-31 23:03:45 -07:00
Paulus Schoutsen
9e96397e6a
Require core config detection to be triggerd manually ( #24019 )
...
* Detect core config
* Remove elevation
* Lint
* Lint
* Fix type
2019-05-22 17:24:46 -07:00
Erik Montnemery
afe9fc221e
Fire event when core config is updated ( #23922 )
...
* Fire event when core config is updated
2019-05-20 20:02:36 +02:00
Erik Montnemery
c2fc8a0d61
Load HA core config from storage ( #23872 )
...
* Load HA core config from storage
* Tweak
* Lint, review comments
* Fix test
* Add tests
* Lint
* Address comments
2019-05-16 16:27:53 +02:00
Paulus Schoutsen
cc13713abd
No longer rely on requests ( #23685 )
...
* No longer rely on requests
* Lint
* Missed a few parts
* Fix types
* Fix more types
* Update __main__.py
* Fix tests
* Lint
* Fix script
2019-05-08 11:15:04 -07:00
Erik Montnemery
407e0c58f9
Migrate tests to pytest ( #23544 )
...
* Migrate tests to pytest
* Fixup
* Use loop fixture in test_check_config
* Lint
2019-04-30 09:20:38 -07:00
Paulus Schoutsen
d218ba98e7
Fix config test when current version is 92 ( #23356 )
2019-04-24 13:37:08 -07:00
Paulus Schoutsen
37ca9cabd1
Fix check config script ( #23151 )
...
* Fix check config script
* Fix typings
* Fix test
2019-04-16 17:14:25 -07:00
Jason Hu
308d1fbba0
Rename google/tts.py to google_translate/tts.py ( #23090 )
...
* Rename google/tts.py to google_translate/tts.py
* Move config migration before load config file
Migrate default config google tts to google_translate tts
* Revert change in process component config
* Fix tests
2019-04-16 14:27:07 -07:00
Paulus Schoutsen
3368e30279
Migrate packages and check config ( #23082 )
...
* Migrate packages and check config
* Fix typing
* Fix check config script
2019-04-14 07:23:01 -07:00
Jason Hu
fe1840f901
Deprecate http.api_password ( #21884 )
...
* Deprecated http.api_password
* Deprecated ApiConfig.api_password
GitHub Drafted PR would trigger CI after changed it to normal PR.
I have to commit a comment change to trigger it
* Trigger CI
* Adjust if- elif chain in auth middleware
2019-03-10 19:55:36 -07:00
Jason Hu
7bae76843c
Add config for trusted networks auth provider ( #21111 )
...
* Add config for trusted networks auth provider
* Lint
* Fix typing
* Fix pylint
* Fix lint
* Add some log information
* Add http.trusted_networks deprecated warning
* Remove log info
* Lint
2019-02-26 14:42:48 -08:00
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
Paulus Schoutsen
d1a621601d
No more opt-out auth ( #18854 )
...
* No more opt-out auth
* Fix var
2018-12-02 16:32:53 +01:00
Paulus Schoutsen
08fe7c3ece
Pytest tests ( #17750 )
...
* 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
Thomas Lovén
ad47ece5c6
Allow split component definitions in packages ( #16177 )
...
* Allow split component definitions in packages
Two different configuration styles are described in
https://www.home-assistant.io/docs/configuration/devices/#style-2-list-each-device-separately
But only one is allowed in packages according to
https://www.home-assistant.io/docs/configuration/packages/
This change allows "Style 2" configuration in packages.
* Added test for split component definition in packages
2018-09-24 10:17:24 +02:00
Jason Hu
257b8b9b80
Blow up startup if init auth providers or modules failed ( #16240 )
...
* Blow up startup if init auth providers or modules failed
* Delete core.entity_registry
2018-08-28 20:54:01 +02:00
Jason Hu
47755fb1e9
Add Time-based Onetime Password Multi-factor Authentication Module ( #16129 )
...
* Add Time-based Onetime Password Multi-factor Auth
Add TOTP setup flow, generate QR code
* Resolve rebase issue
* Use svg instead png for QR code
* Lint and typing
* Fix translation
* Load totp auth module by default
* use <svg> tag instead markdown image
* Update strings
* Cleanup
2018-08-26 22:38:52 +02:00
Jason Hu
26a485d43c
Default load trusted_network auth provider if configured trusted networks ( #16184 )
2018-08-25 11:09:48 +02:00
Paulus Schoutsen
d21d7cef4c
Enable auth by default 🙈 ( #16107 )
...
* Enable auth by default
* Only default legacy_api_password if api_password set
* Tweak bool check
* typing
2018-08-23 13:38:08 +02:00
Jason Hu
2022d39339
Disallow use insecure_example auth provider in configuration.yml ( #15504 )
...
* Disallow use insecure_example auth provider in configuration.yml
* Add unit test for auth provider config validate
2018-07-17 19:36:33 +02:00
cdce8p
7d9bce2153
Fix extended package support ( #14980 )
...
* Fix package recurive merge bug
* Fixed extended package support
2018-06-16 06:55:32 -04:00
cdce8p
6ceafabd78
Extend package support ( #14611 )
2018-05-25 16:41:50 -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
Johann Kellerman
a6b63b669e
Don't add Falsy items to list #13412 ( #13536 )
2018-03-29 17:13:08 -07:00
cdce8p
8a0facb747
Validate basic customize entries ( #13478 )
...
* Added schema to validate customize dictionary
* Added test
2018-03-26 19:50:29 -07:00
Johann Kellerman
4270bc7abb
Perform check_config service in current process ( #13017 )
...
* Perform check_config service in current process
* feedback
2018-03-19 14:20:04 -07:00
Matthias Urlichs
f5cc40024d
Rename homeassistant.util.async to .async_ ( #13088 )
...
"async" is (going to be) a reserved word.
2018-03-11 10:01:12 -07: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
Paulus Schoutsen
5601fbdc7a
Entity layer cleanup ( #12237 )
...
* Simplify entity update
* Split entity platform from entity component
* Decouple entity platform from entity component
* Always include unit of measurement again
* Lint
* Fix test
2018-02-08 12:16:51 +01:00
Pascal Vizeli
dacd7cd8a4
Core support for hass.io calls & Bugfix check_config ( #11571 )
...
* Initial overwrites
* Add check_config function.
* Update hassio.py
* Address comments
* add hassio support
* add more tests
* revert core changes
* Address check_config
* Address comment with api_bool
* Bugfix check_config
* Update core.py
* Update test_core.py
* Update config.py
* Update hassio.py
* Update config.py
* Update test_config.py
2018-01-12 15:29:58 +01:00
Eugenio Panadero
875edef3f0
Fix load of components without any config from packages ( #9901 )
...
* Fix load of components without any config from packages
- Add 'None' to the packages config schema validation, to be able to
load components without any more configuration from yaml package files,
like `wake_on_lan`, `media_extractor` and so on.
* test the ability to load components without configuration from packages
2017-10-17 09:59:33 +02:00
Paulus Schoutsen
75f902f57e
RFC: Create a secrets file and enable HTTP password by default ( #9685 )
...
* Create a secret and enable password by default
* Comment out api password secret
* Lint/fix tests
2017-10-05 09:10:29 -07:00
Paulus Schoutsen
0b58d5405e
Add cloud auth support ( #9208 )
...
* Add initial cloud auth
* Move hass.data to a dict
* Move mode into helper
* Fix bugs afte refactor
* Add tests
* Clean up scripts file after test config
* Lint
* Update __init__.py
2017-08-29 13:40:08 -07:00
Andrey
c73338bf3e
Backend changes for customize config panel. ( #9134 )
...
* Backend changes for customize config panel.
* Backend changes for customize config panel.
* Add customize.yaml to default config
* Precreate customize.yaml
* Add tests
2017-08-26 10:02:32 -07:00
Paulus Schoutsen
49c399c358
Update persistent deps dir version in config.py ( #8479 )
...
* Update persistent deps dir version in config.py
* Update last version to remove deps dir in tests
2017-07-19 22:59:21 -07: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
5ef274adce
Cleanup automations yaml ( #8223 )
2017-06-27 10:36:26 +02:00
Pascal Vizeli
2dd7f0616e
Add security layer to send file output things ( #8189 )
...
* Add security layer to send file output things
* Make telegram secure
* fix lint
* fix handling
* invert check
* resolve relative paths
* add test for relative paths
* fix lint
* fix tests
* Address paulus comments
* fix style
* fix tests
* Add more tests
* fix tests
* fix tests
* fix test p2
* fix lint
* fix tests
* Make it available for windows
* Change name / address comments
* fix set
* fix test
* fix tests
* fix test
* fix lint
2017-06-26 00:10:30 +02:00
Alex Harvey
78887c5d5c
Start of migration framework, to allow moving of files in the config … ( #7740 )
...
* Start of migration framework, to allow moving of files in the config directory to be hidden, ios.conf used as the first one to undergo this change.
* Update const.py
* Update test_config.py
* improvement to syntax
2017-06-01 23:50:04 -07:00
Paulus Schoutsen
e68bd0457c
Fix more deprecation warnings ( #7778 )
...
* Remove setting up an hbmqtt broker
* Don't pass loop to web.Application in tests
* Use .query instead of deprecated .GET for aiohttp requests
* Fix closing file resource
* Do not use asyncio mark
* Notify.html5 - PyJWT: Use options to disable verify
* Yamaha: Test was still using deprecated ip
* Remove pytest-asyncio
2017-05-26 13:12:17 -07:00
Fabian Affolter
1f4f2d7086
Upgrade voluptuous to 0.10.5 ( #7107 )
...
* Upgrade voluptuous to 0.10.5
* Fix tests
2017-04-30 00:42:19 -07:00
Andrey
f96e06a2c2
Preserve customize glob order. ( #6963 )
...
* Preserve customize glob order.
* add tests
2017-04-06 22:39:35 -07: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
e2e8b43902
Default config to setup group editor ( #6198 )
2017-02-23 22:53:16 -08:00
Paulus Schoutsen
75e41a21c9
Clean up mock_coro ( #6037 )
2017-02-15 23:19:34 -08:00
Paulus Schoutsen
235d0057b1
Simplify customize ( #6007 )
...
* Simplify customize
* Maintain glob order
* Have glob overrule domain
2017-02-15 19:47:30 -08:00
Paulus Schoutsen
dab6d011ca
Add check_config API ( #5898 )
...
* Add check_config API
* Add config panel to default config
* Add tests
* Lint
* lint
2017-02-12 11:31:46 -08:00
Pascal Vizeli
3f82ef64a1
Move core service from core to components ( #5787 )
...
* Move core servcie from core to components
* add new handler for signals/exception
* Static persistent id
* Move unittest
* fix coro/callback
* Add more unittest for new services
* Address comments
* Update __init__.py
2017-02-08 09:17:52 -08:00
andrey-git
1fb372ffdb
Apply new customize format to Zwave ( #5603 )
2017-01-28 22:29:51 +02:00
Johann Kellerman
f2870c3103
[core.config] Support customize in packages ( #5543 )
...
* Support customize in packages
* GMT
* Update test_config.py
2017-01-26 22:26:49 -08:00
andrey-git
addc2c4340
Allow easier customization of whole domain, entity lists, globs. ( #5215 )
2017-01-22 21:19:50 +02: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
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