Commit graph

253 commits

Author SHA1 Message Date
Bram Kragten
e419689229 Add config endpoint for scene ()
* 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 ()
* 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 ()
* Remove direct authentication via trusted networks and API password

* Fix tests
2019-10-14 14:56:45 -07:00
Franck Nijhof
d4a67e3a30 Update documentation link URL for integrations (part2) () 2019-10-02 09:34:07 -07:00
Erik Montnemery
e57e7e8449
Improve validation of device trigger config ()
* Improve validation of device trigger config

* Remove action and condition checks

* Move config validation to own file

* Fix tests

* Fixes

* Fixes

* Small tweak
2019-09-27 17:48:48 +02:00
Franck Nijhof
0df1b4c7a1 Replaces IOError by OSError () 2019-09-04 19:09:24 +02:00
Franck Nijhof
2f0eb07624 Migrate legacy typehints in core to PEP-526 ()
* Migrate legacy typehints in core to PEP-526

* Fix one type
2019-09-03 20:36:04 -07:00
Franck Nijhof
decf13b948 Use literal string interpolation in core (f-strings) () 2019-08-23 09:53:33 -07:00
Paulus Schoutsen
6f357cb23e First pass fixing tests that raise exceptions caught by asyncio.gather ()
* First pass fixing tests that raise exceptions caught by asyncio.gather

* Fix demo test

* lint
2019-08-12 16:42:12 +02:00
Johann Kellerman
8b9d0593b1 Allow components with empty list config (i.e. person) in packages ()
* Fix 

* mypy Lists
2019-08-10 16:30:33 -07:00
Joakim Plate
d1b9ebc7b2 Integration requirement check refactor ()
* Factor out code getting requirements for integration

* Have process requirements raise an exception

* One more lint fix

* Blackify

* Catch new exception

* Let RequirementsNotFound be a HomeAssistantError

* Correct another test

* Split catching of exceptions and avoid complete log
2019-08-07 15:35:50 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Joakim Plate
3d11c45edd Log platform import errors and correct reqs for config check ()
* Log failures to load plaforms

* Drop unused exception variable

* Also load pip requirements with check config

* Fix lint

* More lint

* Drop invalid parameters for error call
2019-07-31 09:09:00 -07:00
Ville Skyttä
56841da2d3 Upgrade mypy to 0.720, turn on unreachability warnings ()
* Upgrade mypy to 0.720

* Turn on mypy unreachability warnings, address raised issues
2019-07-16 15:11:38 -07:00
Joakim Plate
b57c60ad7a Load requirements for platforms ()
Fixes  and fixes 
2019-07-14 14:13:36 -07:00
Johann Kellerman
2e26f0bd2b Add check_config helper ()
* check_config

* no ignore

* tests

* try tests again
2019-07-10 11:56:50 -07:00
Joakim Sørensen
df4caf41d0 Install requirements for integrations in packages before importing them. ()
* Process requirements for integrations in packages before loading

* trigger buld
2019-07-07 12:04:30 -07:00
Franck Nijhof
31f569ada9 Batch of Component(s) -> Integration(s) () 2019-07-05 15:24:26 -07:00
Paulus Schoutsen
f2962a0d16
Set up Met during onboarding ()
* Set up Met during onboarding

* Lint

* Add pyMetNo to test reqs
2019-06-19 14:41:27 -07:00
Thomas Lovén
70bbb867f9 Use met.no instead of yr.no in default config () 2019-06-11 08:34:02 -07:00
Paulus Schoutsen
929f3c2594
Use loose version () 2019-06-08 08:19:00 -07:00
Paulus Schoutsen
0b70419859
Remove deps folder in config when on Docker ()
* Remove deps folder in config

* Fix tests

* Fix tests with docker check
2019-06-03 12:37:27 -07:00
Paulus Schoutsen
6667138b73
Remove discovery from initial config () 2019-05-29 15:32:36 -07:00
Paulus Schoutsen
9e96397e6a
Require core config detection to be triggerd manually ()
* 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 ()
* Fire event when core config is updated
2019-05-20 20:02:36 +02:00
Paulus Schoutsen
e356d0bcda
Better handle file not found when loading YAML ()
* Better handle file not found

* Lint
2019-05-19 12:01:29 +02:00
Erik Montnemery
c2fc8a0d61 Load HA core config from storage ()
* 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
70ed58a78d
Restructure device tracker ()
* Restructure device tracker

* Docstyle

* Fix typing

* Lint

* Lint

* Fix tests
2019-05-15 23:43:45 +02:00
Paulus Schoutsen
b8f6d824fd
Catch import error when processing config () 2019-05-12 23:54:55 -07:00
Paulus Schoutsen
cc13713abd
No longer rely on requests ()
* 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
Jason Hu
7e8f2d72b6 Add error handling for migration failure () 2019-04-25 12:58:10 -07:00
Jason Hu
c61b6cf616 Support unicode in configuration migration () 2019-04-23 17:47:09 -07:00
Paulus Schoutsen
37ca9cabd1 Fix check config script ()
* 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 ()
* 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 ()
* Migrate packages and check config

* Fix typing

* Fix check config script
2019-04-14 07:23:01 -07:00
Paulus Schoutsen
8582e390f8 Remove introduction component ()
* Remove introduction component

* Remove more usage
2019-04-09 14:45:09 -07:00
Robbie Trencheny
95da6d41f9
Mobile App: Discovery to default configuration.yaml, zeroconf to default_config ()
* Move discovery into default configuration.yaml

* Add zeroconf to default_config
2019-03-13 22:05:56 -07:00
Jason Hu
fe1840f901 Deprecate http.api_password ()
* 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 ()
* 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
Paulus Schoutsen
e59240fa00
Add default_config component ()
* Add default config component

* Add default_config to default config

* Fix comments
2019-02-07 20:07:15 -08:00
Jason Hu
c812176e94 Fix the line reference in config error message ()
* Fix the line reference in config error message

* Fix platform config validation

* Fix test

* Handle error in error handling routine
2019-02-04 10:58:06 -08:00
Paulus Schoutsen
cb07ea0d60
RFC: Add system health component ()
* Add system health component

* Remove stale comment

* Fix confusing syntax

* Update test_init.py

* Address comments

* Lint

* Move distro check to updater

* Convert to websocket

* Lint

* Make info callback async

* Fix tests

* Fix tests

* Lint

* Catch exceptions
2019-01-30 10:57:53 -08:00
emontnemery
d7ba2aad1d Add COMPONENT_SCHEMA and use it in alarm_control_panel ()
* Add COMPONENT_SCHEMA and use in alarm and mqtt

* Revert MQTT changes

* Lint

* Small tweak

* Add tests

* Rename COMPONENT_SCHEMA to PLATFORM_SCHEMA_BASE

* Fix tests

* Improve tests
2019-01-28 16:14:55 -08:00
Johann Kellerman
c36c708068 Align valid_entity_id with new slugify ()
* slug

* ensure a dot

* fix

* schema_with_slug_keys

* lint

* test
2019-01-21 09:45:11 -08:00
Ville Skyttä
1be440a72b Upgrade pylint to 2.2.2 ()
* Upgrade to 2.2.0

* simplifiable-if-expression fixes

* duplicate-string-formatting-argument fixes

* unused-import fixes

* Upgrade to 2.2.1

* Remove no longer needed disable

* Upgrade to 2.2.2
2018-12-06 11:54:44 +01:00
cdce8p
3904d83c32 Extend partial reload to include packages ()
* 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
Ville Skyttä
4d9ef9e795
Import homeassistant domain instead of hardcoding it () 2018-10-30 17:38:09 +02:00
Ville Skyttä
15f4ed74ac Tweak sensors comments in default config ()
Makes it more clear that there should be only one sensors section, and
that the weather prediction comment applies only to the yr platform.
2018-10-17 09:58:41 +02:00
Jason Hu
7a77951bb4 Add Notify MFA module ()
* Add Notify MFA

* Fix unit test

* Address review comment, change storage implementation

* Add retry limit to mfa module

* Fix loading

* Fix invalaid login log processing

* Typing

* Change default message template

* Change one-time password to 8 digit

* Refactoring to not save secret

* Bug fixing

* Change async_initialize method name to aysnc_initialize_login_mfa_step

* Address some simple fix code review comment
2018-09-24 11:06:50 +02:00
Thomas Lovén
ad47ece5c6 Allow split component definitions in packages ()
* 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