Commit Graph
100 Commits
Author SHA1 Message Date
Paulus SchoutsenandGitHub 249981de96 Prevent legacy api password with empty password (#16127)
* Prevent legacy api password with empty password

* Typing
2018-08-23 12:56:01 +02:00
Paulus SchoutsenandPascal Vizeli 2e6cb2235c Check correctly if package is loadable (#16121) 2018-08-22 12:17:14 +02:00
Paulus SchoutsenandJason Hu cdb8361050 Add support for revoking refresh tokens (#16095)
* Add support for revoking refresh tokens

* Lint

* Split revoke logic in own method

* Simplify

* Update docs
2018-08-21 11:02:55 -07:00
Paulus SchoutsenandPascal Vizeli b26506ad4a Use new session when fetching remote urls (#16093) 2018-08-21 19:03:46 +02:00
Paulus SchoutsenandGitHub 7bb5344942 Remove homeassistant.remote (#16099)
* Remove homeassistant.remote

* Use direct import for API

* Fix docstring
2018-08-21 15:49:58 +02:00
Paulus SchoutsenandGitHub 5a15b2c036 Merge pull request #16094 from home-assistant/rc
0.76.2
2018-08-21 12:20:06 +02:00
Paulus SchoutsenandPaulus Schoutsen bd776c84bc Forgiving add index in migration (#16092) 2018-08-21 11:43:08 +02:00
Paulus SchoutsenandGitHub 68cd65567d Forgiving add index in migration (#16092) 2018-08-21 11:41:52 +02:00
Paulus SchoutsenandGitHub 1be61df9c0 Add recent context (#15989)
* Add recent context

* Add async_set_context to components not using new services
2018-08-20 17:39:53 +02:00
Paulus SchoutsenandGitHub d1e1b9b38a Deprecated stuff (#16019)
* Use async with for locks

* Fix regex in template test

* Close session correctly

* Use correct current_task method

* push camera cleanup

* Lint

* Revert current_task

* Update websocket_api.py

* Mock executor_job betteR

* Fix async_create_task mock
2018-08-20 16:34:18 +02:00
Paulus SchoutsenandGitHub 18d19fde0b Alexa: context + log events (#16023) 2018-08-20 14:18:07 +02:00
Paulus SchoutsenandPascal Vizeli 121abb450a Use aiohttp web.AppRunner (#16020)
* Use aiohttp web.AppRunner

* Stop site
2018-08-20 14:03:35 +02:00
Paulus SchoutsenandGitHub e1b2e00cf6 Merge pull request #16064 from home-assistant/rc
0.76.1
2018-08-19 20:07:44 +02:00
Paulus SchoutsenandPaulus Schoutsen 3c5e62d47e Column syntax fix + Add a file if migration in progress (#16061)
* Add a file if migration in progress

* Warning

* Convert message for migration to warning
2018-08-19 19:01:11 +02:00
Paulus SchoutsenandPaulus Schoutsen 9c3251b5f0 Add notify platforms to loaded components (#16063) 2018-08-19 18:58:13 +02:00
Paulus SchoutsenandPaulus Schoutsen 1c8ef4e196 Add forgiving add column (#16057)
* Add forgiving add column

* Lint
2018-08-19 18:58:12 +02:00
Paulus SchoutsenandGitHub 9e1fa7ef42 Column syntax fix + Add a file if migration in progress (#16061)
* Add a file if migration in progress

* Warning

* Convert message for migration to warning
2018-08-19 18:57:06 +02:00
Paulus SchoutsenandGitHub 7c95e96ce8 Add notify platforms to loaded components (#16063) 2018-08-19 18:56:31 +02:00
Paulus SchoutsenandPascal Vizeli 81d3161a5e Add forgiving add column (#16057)
* Add forgiving add column

* Lint
2018-08-19 17:22:09 +02:00
Paulus SchoutsenandPascal Vizeli b901a26c47 Attempt to fix flaky TTS test (#16025) 2018-08-18 13:35:51 +02:00
Paulus SchoutsenandPascal Vizeli 8ec550d6e0 Storage entity registry (#16018)
* Split out storage delayed write

* Update code using delayed save

* Fix tests

* Fix typing test

* Add callback decorator

* Migrate entity registry to storage helper

* Make double loading protection easier

* Lint

* Fix tests

* Ordered Dict
2018-08-18 13:34:33 +02:00
Paulus SchoutsenandGitHub 2ad0bd4036 Split out storage delay save (#16017)
* Split out storage delayed write

* Update code using delayed save

* Fix tests

* Fix typing test

* Add callback decorator
2018-08-17 20:18:21 +02:00
Paulus SchoutsenandGitHub 70412fc0ba Merge pull request #16027 from home-assistant/rc
0.76.0
2018-08-17 18:41:40 +02:00
Paulus SchoutsenandPaulus Schoutsen 92e26495da Disable the DLNA component discovery (#16006) 2018-08-16 23:02:26 +02:00
Paulus SchoutsenandGitHub 279ead2085 Disable the DLNA component discovery (#16006) 2018-08-16 22:41:44 +02:00
Paulus SchoutsenandGitHub 834077190f Clean up input-datetime (#16000) 2018-08-16 22:17:14 +02:00
Paulus SchoutsenandGitHub 1ff1639cef More entity service (#15998)
* Camera use entity service

* Convert climate services

* Convert light

* Convert media player

* Migrate fan
2018-08-16 14:28:59 +02:00
Paulus SchoutsenandPaulus Schoutsen 2469bc7e2e Fix Nest async from sync (#15997) 2018-08-16 14:26:44 +02:00
Paulus SchoutsenandGitHub 83b0ef4e26 Fix Nest async from sync (#15997) 2018-08-16 13:46:43 +02:00
Paulus SchoutsenandGitHub b682e48e12 Entity service (#15991)
* Add entity service helper

* Use entity service helper

* Context
2018-08-16 09:50:11 +02:00
Paulus SchoutsenandPaulus Schoutsen 1777270aa2 Pin crypto (#15978)
* Pin crypto

* Fix PyJWT import once
2018-08-14 22:06:44 +02:00
Paulus SchoutsenandPaulus Schoutsen f5df567d09 Use JWT for access tokens (#15972)
* Use JWT for access tokens

* Update requirements

* Improvements
2018-08-14 22:06:44 +02:00
Paulus SchoutsenandPaulus Schoutsen 899c2057b7 Switch to intermediate Mozilla cert profile (#15957)
* Allow choosing intermediate SSL profile

* Fix tests
2018-08-14 22:06:43 +02:00
Paulus SchoutsenandGitHub 486efa9aba Pin crypto (#15978)
* Pin crypto

* Fix PyJWT import once
2018-08-14 22:02:01 +02:00
Paulus SchoutsenandGitHub e776f88eec Use JWT for access tokens (#15972)
* Use JWT for access tokens

* Update requirements

* Improvements
2018-08-14 21:14:12 +02:00
Paulus SchoutsenandGitHub 91e1ae035e Remove warning (#15969) 2018-08-14 12:29:55 +02:00
Paulus SchoutsenandGitHub 6540d2e073 Switch to intermediate Mozilla cert profile (#15957)
* Allow choosing intermediate SSL profile

* Fix tests
2018-08-14 08:20:17 +02:00
Paulus SchoutsenandPaulus Schoutsen c0830f1c20 Deprecate remote.api (#15955) 2018-08-13 23:17:21 +02:00
Paulus SchoutsenandFabian Affolter 1b5cfa7331 Deprecate remote.api (#15955) 2018-08-13 22:39:13 +02:00
Paulus SchoutsenandGitHub 0ab3e7a92a Add IndieAuth 4.2.2 redirect uri at client id (#15911)
* Add IndieAuth 4.2.2 redirect uri at client id

* Fix tests

* Add comment

* Limit to first 10kB of each page
2018-08-10 18:09:42 +02:00
Paulus SchoutsenandGitHub 9512bb9587 Add and restore context in recorder (#15859) 2018-08-10 18:09:01 +02:00
Paulus SchoutsenandGitHub 28de2d6f75 Merge pull request #15903 from home-assistant/rc
0.75.3
2018-08-09 14:34:31 +02:00
Paulus SchoutsenandGitHub 99c4c65f69 Add auth/authorize endpoint (#15887) 2018-08-09 09:27:54 +02:00
Paulus SchoutsenandGitHub d071df0dec Do not make internet connection during tests (#15858)
* Do not make internet connection

* Small improvement
2018-08-07 09:27:40 +02:00
Paulus SchoutsenandGitHub 527585ff9c Merge pull request #15856 from home-assistant/rc
0.75.2
2018-08-06 12:59:54 +02:00
Paulus SchoutsenandGitHub 3f8c91d77c Merge pull request #15823 from home-assistant/rc
0.75.1
2018-08-04 15:26:51 +02:00
Paulus SchoutsenandGitHub 7d9f8b0d4c Merge pull request #15806 from home-assistant/rc
0.75.0
2018-08-03 16:45:24 +02:00
Paulus SchoutsenandPaulus Schoutsen c63fd974fb Return True from Nest setup (#15797) 2018-08-03 14:22:40 +02:00
Paulus SchoutsenandAaron Bach 59f8a73676 Return True from Nest setup (#15797) 2018-08-02 16:36:37 -06:00
Paulus SchoutsenandJason Hu c7f4bdafc0 Context (#15674)
* Add context

* Add context to switch/light services

* Test set_state API

* Lint

* Fix tests

* Do not include context yet in comparison

* Do not pass in loop

* Fix Z-Wave tests

* Add websocket test without user
2018-07-28 17:53:37 -07:00
Paulus SchoutsenandGitHub 9d59bfbe00 0.74.2 (#15671)
* Fix CORS duplicate registration (#15670)

* Bumped version to 0.74.2
2018-07-25 13:09:32 +02:00
Paulus SchoutsenandPaulus Schoutsen 2824efd505 Fix CORS duplicate registration (#15670) 2018-07-25 11:37:11 +02:00
Paulus SchoutsenandGitHub 169c8d793a Fix CORS duplicate registration (#15670) 2018-07-25 11:36:44 +02:00
Paulus SchoutsenandGitHub d9cf8fcfe8 Allow changing entity ID (#15637)
* Allow changing entity ID

* Add support to websocket command

* Address comments

* Error handling
2018-07-24 14:12:53 +02:00
Paulus SchoutsenandGitHub 5e9c1098c0 Merge pull request #15651 from home-assistant/rc
0.74.1
2018-07-24 13:43:25 +02:00
Paulus SchoutsenandPaulus Schoutsen 45a5ae1f23 Cast/Sonos: create config entry if manually configured (#15630)
* Cast/Sonos: create config entry if manually configured

* Add test for helper
2018-07-24 11:20:07 +02:00
Paulus SchoutsenandGitHub 3204501174 Cast/Sonos: create config entry if manually configured (#15630)
* Cast/Sonos: create config entry if manually configured

* Add test for helper
2018-07-23 15:08:03 +02:00
Paulus SchoutsenandGitHub 8213b1476f WIP: Hass.io sent token to supervisor (#15536)
Hass.io sent token to supervisor
2018-07-23 14:14:57 +02:00
Paulus SchoutsenandGitHub 4e7dbf9ce5 Allow system users to refresh tokens (#15574) 2018-07-23 14:06:09 +02:00
Paulus SchoutsenandGitHub ea2ff6aae3 Use async_create_task (#15633)
* Use async_create_task

* Fix test
2018-07-23 14:05:38 +02:00
Paulus SchoutsenandMartin Hjelmare 75f40ccb06 Remove entity picture of Tuya entity (#15611) 2018-07-22 12:10:32 +02:00
Paulus SchoutsenandGitHub da3366859d Merge pull request #15570 from home-assistant/rc
0.74
2018-07-20 15:11:18 +02:00
Paulus SchoutsenandPaulus Schoutsen eff334a1d0 Remove relative time from state machine (#15560) 2018-07-20 12:32:45 +02:00
Paulus SchoutsenandPaulus Schoutsen b3bed7fb37 Allow auth providers to influence is_active (#15557)
* Allow auth providers to influence is_active

* Fix auth script test
2018-07-20 12:32:44 +02:00
Paulus SchoutsenandGitHub ea18e06b08 Remove relative time from state machine (#15560) 2018-07-19 23:12:17 +02:00
Paulus SchoutsenandGitHub 2fcacbff23 Allow auth providers to influence is_active (#15557)
* Allow auth providers to influence is_active

* Fix auth script test
2018-07-19 22:10:36 +02:00
Paulus SchoutsenandPaulus Schoutsen 2fc0d83085 Allow CORS requests to token endpoint (#15519)
* Allow CORS requests to token endpoint

* Tests

* Fuck emulated hue

* Clean up

* Only cors existing methods
2018-07-19 12:26:08 +02:00
Paulus SchoutsenandPaulus Schoutsen ca0d4226aa Decouple emulated hue from http server (#15530) 2018-07-19 12:25:47 +02:00
Paulus SchoutsenandPaulus Schoutsen dff2e4ebc2 Don't be so strict client-side (#15546) 2018-07-19 12:23:14 +02:00
Paulus SchoutsenandGitHub 8b04d48ffd Update config entry id in entity registry (#15531) 2018-07-19 08:37:13 +02:00
Paulus SchoutsenandGitHub 2a76a0852f Allow CORS requests to token endpoint (#15519)
* Allow CORS requests to token endpoint

* Tests

* Fuck emulated hue

* Clean up

* Only cors existing methods
2018-07-19 08:37:00 +02:00
Paulus SchoutsenandGitHub 4650366f07 Don't be so strict client-side (#15546) 2018-07-18 23:00:26 +02:00
Paulus SchoutsenandGitHub 98722e10fc Decouple emulated hue from http server (#15530) 2018-07-18 10:47:06 +02:00
Paulus SchoutsenandPaulus Schoutsen a4318682f7 Add onboarding support (#15492)
* Add onboarding support

* Lint

* Address comments

* Mark user step as done if owner user already created
2018-07-17 10:58:51 +02:00
Paulus SchoutsenandPaulus Schoutsen a14d8057ed Add current user WS command (#15485) 2018-07-17 10:58:50 +02:00
Paulus SchoutsenandGitHub b0a3207454 Add onboarding support (#15492)
* Add onboarding support

* Lint

* Address comments

* Mark user step as done if owner user already created
2018-07-17 10:49:15 +02:00
Paulus SchoutsenandGitHub 8797cb78a9 Add current user WS command (#15485) 2018-07-17 09:24:51 +02:00
Paulus SchoutsenandGitHub 0f12b37977 0.73.2 - security release (#15494)
* Extract SSL context creation to helper (#15483)

* Extract SSL context creation to helper

* Lint

* Bumped version to 0.73.2
2018-07-16 22:13:12 +02:00
Paulus SchoutsenandGitHub ad4cba70a0 Extract SSL context creation to helper (#15483)
* Extract SSL context creation to helper

* Lint
2018-07-16 10:32:07 +02:00
Paulus SchoutsenandGitHub 864a254071 Aware comments (#15480)
* Make sure we cannot deactivate the owner

* Use different error code when trying to fetch token for inactive user
2018-07-15 23:09:05 +02:00
Paulus SchoutsenandGitHub ed0cfc4f31 Add user via cmd line creates owner (#15470)
* Add user via cmd line creates owner

* Ensure access tokens are not verified for inactive users

* Stale print

* Lint
2018-07-15 20:46:15 +02:00
Paulus SchoutsenandFabian Affolter 538236de8f Fix formatting pylint comments in test (#15450) 2018-07-13 23:02:23 +02:00
Paulus SchoutsenandGitHub 70fe463ef0 User management (#15420)
* User management

* Lint

* Fix dict

* Reuse data instance

* OrderedDict all the way
2018-07-13 15:31:20 +02:00
Paulus SchoutsenandGitHub 84858f5c19 Fix comment formatting (#15447) 2018-07-13 15:05:55 +02:00
Paulus SchoutsenandGitHub b6ca03ce47 Reorg auth (#15443) 2018-07-13 11:43:08 +02:00
Paulus SchoutsenandGitHub 1f6331c69d Fix credentials lookup (#15409) 2018-07-10 20:33:03 +02:00
Paulus SchoutsenandGitHub dbdd0a1f56 Expire auth code after 10 minutes (#15381) 2018-07-10 11:20:22 +02:00
Paulus SchoutsenandGitHub 0d4841cbea Use IndieAuth for client ID (#15369)
* Use IndieAuth for client ID

* Lint

* Lint & Fix tests

* Allow local IP addresses

* Update comment
2018-07-09 18:24:46 +02:00
Paulus SchoutsenandGitHub a1d8b0e9b3 Merge pull request #15330 from home-assistant/rc
0.73
2018-07-06 16:41:09 -04:00
Paulus SchoutsenandGitHub cb129bd207 Add system generated users (#15291)
* Add system generated users

* Fix typing
2018-07-04 11:50:08 -04:00
Paulus SchoutsenandGitHub 857c58c4b7 Disable the calendar panel (#15282) 2018-07-03 13:20:42 -04:00
Paulus SchoutsenandGitHub 26590e244c Migrate home assistant auth provider to use storage helper (#15200) 2018-06-29 00:02:45 -04:00
Paulus SchoutsenandGitHub 39971ee919 Make sure we check access token expiration (#15207)
* Make sure we check access token expiration

* Use correct access token websocket
2018-06-29 00:02:33 -04:00
Paulus SchoutsenandGitHub 2205090795 Storage auth (#15192)
* Support parallel loading

* Add storage mock

* Store auth

* Fix tests
2018-06-28 22:14:26 -04:00
Paulus SchoutsenandGitHub 742144f401 Warn when using custom components (#15172)
* Warn when using custom components

* Update text
2018-06-27 15:21:32 -04:00
Paulus SchoutsenandGitHub d58e401812 Merge pull request #15149 from home-assistant/rc
0.72.1
2018-06-25 17:25:44 -04:00
Paulus SchoutsenandGitHub c79c94550f Return None to indicate no config found (#15147)
* Return None to indicate no config found

* Fix tests
2018-06-25 17:21:38 -04:00
Paulus SchoutsenandPaulus Schoutsen 3f21966ec9 Fix cast config (#15143) 2018-06-25 16:58:27 -04:00
Paulus SchoutsenandGitHub 46ea28a4f8 Fix cast config (#15143) 2018-06-25 15:59:05 -04:00
Paulus SchoutsenandGitHub ae51dc08bf Add storage helper and migrate config entries (#15045)
* Add storage helper

* Migrate config entries to use the storage helper

* Make sure tests do not do I/O

* Lint

* Add versions to stored data

* Add more instance variables

* Make migrator load config if nothing to migrate

* Address comments
2018-06-25 12:53:49 -04:00