Paulus Schoutsen
27e29b714c
Bump cloud to 0.47.1 ( #55312 )
...
* Bump cloud to 0.47.0
* Bump reqs
* Bump to 0.47.1
* Do not load hass_nabucasa during http startup
* fix some tests
* Fix test
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
2021-09-01 09:54:54 -07:00
Joakim Sørensen
33fb080c1e
Add remote server to cloud system health ( #55506 )
...
* Add sintun server to cloud system health
* Update name
* Adjust test
2021-09-01 13:23:50 +02:00
Joakim Sørensen
a668300c2e
Use AwesomeVersion for account link service check ( #55449 )
2021-08-30 14:11:07 +02:00
Paulus Schoutsen
ed0fd00746
Bump hass_nabucasa to 0.46.0 ( #54421 )
2021-08-10 11:30:02 -07:00
Paulus Schoutsen
38a7bdbcf3
Do not process forwarded for headers for cloud requests ( #54364 )
2021-08-10 01:45:56 +02:00
GitHub Action
ba93bda3ad
[ci skip] Translation update
2021-08-05 00:34:46 +00:00
Franck Nijhof
f3d4dac11f
Fix cloud accountlinking replacing token data ( #53865 )
2021-08-02 16:33:13 +02:00
Robert Hillis
aee48dbcb3
Use entity class attributes for cloud ( #53445 )
2021-07-26 21:23:32 +02:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes ( #52987 )
2021-07-19 10:46:09 +02:00
Joakim Sørensen
720a67957b
Bump hass-nabucasa to 0.44.0 ( #52303 )
2021-06-29 16:04:21 +02:00
GitHub Action
c81df50191
[ci skip] Translation update
2021-06-06 00:19:43 +00:00
Paulus Schoutsen
f472219c68
Set up cloud semi-dependencies at start ( #51313 )
2021-06-01 01:35:31 +02:00
Shay Levy
cf228e3fe5
Add constructor return type in integrations A-D ( #50903 )
2021-05-20 18:51:39 +03:00
tkdrob
6f5629cf14
Add targets and selectors for services (B-C) ( #50189 )
2021-05-14 13:38:41 +02:00
HomeAssistant Azure
04266301e9
[ci skip] Translation update
2021-05-03 00:05:16 +00:00
Franck Nijhof
055cdc64c0
Add support for IoT class in manifest ( #46935 )
2021-04-15 10:21:38 +02:00
Paulus Schoutsen
ba93a033a5
Cloud to set up Alexa conditionally ( #49136 )
2021-04-13 09:31:41 -07:00
Paulus Schoutsen
05aeff5591
Describe Google Assistant events ( #49141 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-04-13 09:31:01 -07:00
Paulus Schoutsen
9f06639ecc
Bump hass-nabucasa 0.43 ( #48964 )
2021-04-09 13:43:38 -07:00
HomeAssistant Azure
a0483165da
[ci skip] Translation update
2021-04-01 00:03:55 +00:00
Philip Allgaier
450f3740cd
Use consolidated constant for "description" ( #48490 )
2021-03-31 14:12:15 +02:00
HomeAssistant Azure
919247f256
[ci skip] Translation update
2021-03-31 00:04:33 +00:00
Franck Nijhof
855b68faa1
Remove HomeAssistantType alias from entity components - Part 1 ( #48467 )
2021-03-29 13:24:36 -10:00
Bram Kragten
03b7b1305c
Cloud: Expose if google is registered in status + check on login ( #48260 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-03-29 19:26:51 +02:00
Bram Kragten
b1d0b37d2c
Google assistant: disconnect user agent when not found in google ( #48233 )
2021-03-23 15:04:32 -07:00
Franck Nijhof
6932cf9534
Use contextlib.suppress where possible ( #48189 )
2021-03-23 14:36:43 +01:00
Marc Mueller
7c0734bdd5
Update typing 05 ( #48038 )
2021-03-17 23:43:55 +01:00
HomeAssistant Azure
c11b85af2f
[ci skip] Translation update
2021-03-16 00:04:36 +00:00
Klaas Schoute
7826f6e3f8
Update cloud integration to 0.42.0 ( #47818 )
2021-03-12 12:52:43 -08:00
HomeAssistant Azure
9159f54900
[ci skip] Translation update
2021-02-24 00:04:14 +00:00
Franck Nijhof
a80921ab65
Minor service definition tweaks ( #46741 )
2021-02-18 17:14:36 +01:00
Paulus Schoutsen
b956a571f4
Fix Cloud Google/Alexa check ( #46681 )
2021-02-17 06:49:53 +01:00
Paulus Schoutsen
959ed6d077
Update translations
2021-02-03 11:46:49 +01:00
Pascal Vizeli
8c573ae29c
Bump hass-nabucasa 0.41.0 ( #45422 )
2021-01-22 07:30:49 -05:00
Paulus Schoutsen
82746616fa
Cloud: Add web socket API to pick default TTS language ( #45064 )
...
* Allow picking default TTS language
* Fix test
* Fix coroutine function
* Improve test coverage
* Remove stale import
* Clean up hass
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-01-13 00:05:30 +01:00
Paulus Schoutsen
69b5176730
Make Alexa custom ID unique ( #44839 )
...
* Make Alexa custom ID unique
* Lint
* Lint
2021-01-05 17:35:28 +01:00
HomeAssistant Azure
f3cabe97e0
[ci skip] Translation update
2020-12-21 00:04:09 +00:00
Ville Skyttä
317ed418dd
Use singleton enum for "not set" sentinels ( #41990 )
...
* Use singleton enum for "not set" sentinel
https://www.python.org/dev/peps/pep-0484/#support-for-singleton-types-in-unions
* Remove unused variable
2020-12-19 12:46:27 +01:00
HomeAssistant Azure
9e1647d634
[ci skip] Translation update
2020-12-15 00:04:49 +00:00
Paulus Schoutsen
9cce6e91f1
Bump hass-nabucasa to 0.39.0 ( #44097 )
2020-12-10 10:10:38 +01:00
HomeAssistant Azure
42f00cff30
[ci skip] Translation update
2020-12-04 00:05:42 +00:00
HomeAssistant Azure
43955d3aa8
[ci skip] Translation update
2020-11-21 00:08:32 +00:00
HomeAssistant Azure
c255e74463
[ci skip] Translation update
2020-11-20 00:06:26 +00:00
HomeAssistant Azure
262fadd9bc
[ci skip] Translation update
2020-11-18 00:09:55 +00:00
Klaas Schoute
b358103b58
Update cloud integration to 0.38.0 ( #43314 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2020-11-17 16:31:59 +01:00
HomeAssistant Azure
7dcfc8f1fa
[ci skip] Translation update
2020-11-16 00:03:40 +00:00
HomeAssistant Azure
9a21421807
[ci skip] Translation update
2020-11-15 00:03:48 +00:00
HomeAssistant Azure
76b843118b
[ci skip] Translation update
2020-11-13 00:10:16 +00:00
Martin Hjelmare
b84415344f
Bump hass-nabucasa to 0.37.2 ( #43146 )
2020-11-12 20:15:31 +01:00
HomeAssistant Azure
8a0907acf9
[ci skip] Translation update
2020-11-12 00:10:58 +00:00
Paulus Schoutsen
54f3d9078a
Update translations
2020-11-11 12:10:09 +01:00
HomeAssistant Azure
4b9ba79584
[ci skip] Translation update
2020-11-11 00:10:27 +00:00
Paulus Schoutsen
7745408440
System health improvement ( #43066 )
2020-11-10 23:56:50 +01:00
Paulus Schoutsen
9f4480a634
Add system health streaming updates ( #42831 )
2020-11-10 22:45:59 +01:00
Paulus Schoutsen
15da7b3ca6
Cloud: Recover when internet is not available yet ( #42877 )
2020-11-06 12:12:18 +01:00
Paulus Schoutsen
11d2e0c671
Bump cloud to 0.37.1 ( #41930 )
2020-10-16 13:40:04 +02:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) ( #41600 )
2020-10-12 16:59:05 +02:00
J. Nick Koston
da2f9db62e
Fix async functions accidentally marked as callbacks ( #41607 )
2020-10-10 16:54:36 +02:00
springstan
db582bdc1b
Use http status constants more, add HTTP_ACCEPTED and HTTP_BAD_GATEWAY ( #39993 )
...
* Use http status codes and add HTTP_BAD_GATEWAY constant
* Address review comments:
- using constants in tado integration
- using constant in media_player init.py
* Add and use HTTP_ACCEPTED constant
2020-09-15 20:01:07 +03:00
springstan
3d4ef8cfe1
Use connectivity device class constant in various integrations ( #39972 )
2020-09-12 13:21:57 -05:00
Pascal Vizeli
7b3369b71d
Bump hass-nabucasa 0.37.0 ( #39885 )
2020-09-10 11:18:43 +02:00
Paulus Schoutsen
6d1ba10788
Bump hass-nabucasa to 0.36.0 ( #39603 )
...
* Bump hass-nabucasa to 0.36.0
* hass-nabucasa 0.36.1
2020-09-03 10:43:51 +02:00
Paulus Schoutsen
5217139e0b
Allow exposing domains in cloud ( #39216 )
2020-08-28 16:49:17 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Bas Nijholt
0427d87ba4
Bump codespell from v1.16.0 to v1.17.1 and fix new spelling errors ( #38663 )
2020-08-08 14:41:02 +02:00
J. Nick Koston
2f1d989df2
Bump hass-nabucasa to avoid the performance penalty loading ecdsa ( #38056 )
2020-08-03 12:55:30 +02:00
Paulus Schoutsen
9d16edc1dc
Bump cloud to 0.34.7 ( #37018 )
2020-06-22 23:42:10 -07:00
Paulus Schoutsen
3ee3ae7633
Fix cloudhooks coming in for non existing webhooks ( #36836 )
...
* Fix cloudhooks coming in for non existing webhooks
* Fix tests"
2020-06-15 16:30:40 -07:00
Paulus Schoutsen
a8e9ccbf1a
Improve cloud error handling ( #36670 )
2020-06-11 22:56:00 -07:00
Paulus Schoutsen
e3fc59ff3d
Bump hass-nabucasa to 0.34.6 ( #36613 )
2020-06-09 16:40:08 -07:00
Paulus Schoutsen
874c8fea03
Bump hass-nabucasa to 0.34.5 ( #36461 )
2020-06-05 00:11:40 -07:00
Paulus Schoutsen
b928d5d4b6
Bump hass_nabucasa to 0.34.4 ( #36236 )
2020-05-28 16:21:58 -07:00
Franck Nijhof
99e345d6e4
Upgrade hass-nabucasa to 0.34.3 ( #36025 )
2020-05-23 19:57:39 +02:00
Paulus Schoutsen
c401949af8
Handle error fetching available account link services ( #35485 )
2020-05-11 08:09:44 -04:00
Paulus Schoutsen
187392deec
Bump hass-nabucasa to 0.34.2 ( #35046 )
2020-05-01 21:00:45 -07:00
Paulus Schoutsen
77443b3d09
Add Home Assistant Started event ( #34657 )
2020-04-24 14:13:39 -07:00
Paulus Schoutsen
d3bbd9ec65
Delay sync for Google and limit updates to relevant info ( #34622 )
2020-04-24 10:49:11 +02:00
Erik Montnemery
b022e08db9
Rename BinarySensorDevice to BinarySensorEntity ( #34462 )
...
* Rename BinarySensorDevice to BinarySensorEntity
* Tweak
* Move deprecation warning to __new__, add test
* Move deprecation warning back to __init__
* Move deprecation warning to __init_subclass
2020-04-23 21:57:07 +02:00
Pascal Vizeli
5f2a9ed965
Fix cloud binary_sensor & TTS/STT ( #34505 )
2020-04-21 08:55:09 -07:00
Pascal Vizeli
095d2718f3
Bump hass-nabucasa 0.34.1 ( #34480 )
2020-04-20 15:55:41 -07:00
Paulus Schoutsen
1ac8442c63
Fix Cloud UI bug preventing managing Google 2FA ( #34241 )
...
* Fix Cloud UI bug preventing managing Google 2FA
* Update comment
2020-04-15 08:43:43 -07:00
springstan
4c38e6cfa5
Use HTTP_BAD_REQUEST constant ( #33797 )
2020-04-09 21:43:42 +02:00
springstan
fb8f8133a0
Use HTTP_INTERNAL_SERVER_ERROR constant ( #33832 )
2020-04-08 23:20:03 +02:00
springstan
8d61893c39
Use HTTP_OK constant ( #33798 )
...
* Use http ok constant
* Remove incorrect use
* Run isort
* Fix pylint by adding missing imports
* Fix pylint by fixing one import
2020-04-08 11:47:38 -05:00
Paulus Schoutsen
9d38413e7c
Upgrade hass-cloud to 0.34 ( #33789 )
2020-04-07 09:59:04 -07:00
springstan
fca90a8ddc
Improve string formatting v5 ( #33697 )
...
* Improve string formatting v5
* Address review comments
2020-04-05 17:48:55 +02:00
Paulus Schoutsen
7ae802bb0d
Cloud do checks during setup ( #33507 )
...
* Update cloud to do more tasks during async_setup
* Upgrade hass_nabucasa to 0.33
2020-04-01 15:25:04 -07:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ( #33508 )
...
* Directly call async_write_ha_state
* Address comments
* Fix tests
2020-04-01 14:19:51 -07:00
Paulus Schoutsen
8a46d93be4
Upgrade hass_nabucasa to 0.32.2 ( #32522 )
...
* Upgrade hass_nabucasa to 32.1
* Fix tests
* Update hass-nabucasa to 0.32.2
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-03-09 17:42:26 -07:00
Paulus Schoutsen
19254eee30
Upgrade hass-nabucasa to 0.32 ( #32508 )
2020-03-05 13:34:24 -08:00
Paulus Schoutsen
8aea538662
Allow teaching logbook about events ( #32444 )
...
* Allow teaching logbook about events
* Use async_add_executor_job
* Fix tests
2020-03-05 11:55:50 -08:00
Paulus Schoutsen
8ceef72853
Google Assistant: Track if request is local ( #31226 )
...
* Track if request is local
* Cancel early if 2FA disabled
* Allow disabling 2FA for ack
* Do not mark devices with 2FA as reachable
* Add request source to GA events
2020-01-28 10:54:39 -08:00
Paulus Schoutsen
1e3b3ecbe6
Set default locale for cloud Alexa config ( #30749 )
2020-01-14 08:33:45 +01:00
Paulus Schoutsen
c963128306
Upgrade to use new version of HASS-nabucasa ( #30506 )
...
* Upgrade to use new version of HASS-nabucasa
* Update hass-nabucasa to 0.31
2020-01-07 13:25:57 +01:00
Franck Nijhof
345cc244ed
Correct names in manifests (C-L) ( #30532 )
2020-01-07 08:19:17 +01:00
Paulus Schoutsen
05374d7c85
Fix google sync ( #30524 )
2020-01-06 22:00:39 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ( #30500 )
...
* Be consistent with Home Assistant spelling
* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Paulus Schoutsen
6e909ab3f1
Only return remote UI url if remote UI enabled ( #30453 )
2020-01-04 13:43:59 +01: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
Ville Skyttä
e6388e186c
Remove unnecessary string literal concatenations ( #30360 )
2020-01-02 21:17:10 +02:00
Bas Nijholt
fbd4cf1089
use isort to sort imports according to PEP8 for cloud ( #29626 )
2019-12-08 22:31:12 +05:30
Paulus Schoutsen
a050d54847
Make hassfest stricter ( #29494 )
...
* Make hassfest stricter
* Update manifest.json
2019-12-05 10:15:28 +01:00
Joakim Plate
2569c4ae37
Google assistant storage of connected agents ( #29158 )
...
* Make async_report_state take agent_user_id
* Attempt to store synced agents
* Drop now not needed initialization
* Make sure cloud uses the all sync on changed preferences
* Some more places to use all version of sync
* Get the agent_user_id from the request context if available
* Minor cleanup
* Remove the old fixed agent_user_id for cloud
Instead pass along cloud_user where appropriate.
* async_delay_save takes a function
* Adjust test for delayed store
* Remove unused save function
* Add login check.
2019-12-02 22:05:59 -08:00
Paulus Schoutsen
b847d55077
Only create cloud user if cloud in use ( #29150 )
...
* Only create cloud user if cloud in use
* Pass context to alexa
* Update requirements
* Fix handing & design pattern for 0.30
* fix tests
* Fix lint & tests
* rename internal user
2019-11-28 14:23:59 +01:00
Joakim Plate
06231e7ac2
Move request sync logic into GoogleConfig ( #28227 )
...
* Move request sync logic into GoogleConfig
* Return http status code for request_sync same as cloud
* agent_user_id is not optional for async_sync_entities now
* No need in checking parameter here
* Adjust some things for cloud tests
* Adjust some more stuff for cloud tests
* Drop uneccessary else
* Black required change
* Let async_schedule_google_sync take agent_user_id
* Assert return value on api call
* Test old api key method
* Update homeassistant/components/google_assistant/helpers.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
2019-11-26 22:47:13 +01:00
Paulus Schoutsen
2cf86a3554
Fix account link version check ( #28770 )
2019-11-14 14:34:13 +01:00
Paulus Schoutsen
bd54ff3c02
Add TT WS API ( #28599 )
...
* Add TT WS API
* Add a test
* Correctly convert TT errrors
2019-11-08 10:06:16 +01:00
Pascal Vizeli
005a1b2713
Add additional support over NC ( #28527 )
...
* Add voice support over NC
* Add disocery support for TTS / STT
* fix cloud TTS discovery
* Fix dev config
* Fix discovery
* Bump hass-nabucasa 0.25
* Add channel support
* Fix lint
* Update homeassistant/components/cloud/__init__.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* Update homeassistant/components/cloud/tts.py
Co-Authored-By: Paulus Schoutsen <balloob@gmail.com>
* bump hass-nabucasa
* Update tts.py
* fix lint
2019-11-05 22:39:15 +01:00
Paulus Schoutsen
08cc9fd375
Add cloud account linking support ( #28210 )
...
* Add cloud account linking support
* Update account_link.py
2019-10-25 16:04:24 -07:00
bouni
1d8e366278
Move imports in cloud component ( #27881 )
2019-10-18 15:39:37 -07:00
Paulus Schoutsen
e866d769e8
Google Assistant Local SDK ( #27428 )
...
* Local Google
* Fix test
* Fix tests
2019-10-13 14:16:27 -07:00
Paulus Schoutsen
f184bf4d85
Add Google Report State ( #27112 )
...
* Add Google Report State
* UPDATE codeowners"
* Add config option for dev mode
* update library
* lint
* Bug fixes
2019-10-03 13:02:38 +02:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
Franck Nijhof
6a24d893c8
Use literal string interpolation in integrations B-D (f-strings) ( #26378 )
2019-09-03 17:09:59 +02:00
Paulus Schoutsen
7b05ede297
Fix Alexa Report State ( #26305 )
...
* Fix Alexa Report State
* Forgot to save a file
2019-08-30 20:34:40 -05:00
Pascal Vizeli
6b80df9652
Bump nabucasa-cloud to 0.17 ( #26066 )
2019-08-19 12:15:41 +02:00
Paulus Schoutsen
35400b0db1
Upgrade hass-nabucasa to 0.16 ( #25636 )
2019-08-01 13:03:45 -07:00
Paulus Schoutsen
0ccffc3e55
Lint
2019-07-31 12:46:17 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
8ec75cf883
Verify cloud user exists during boot ( #25119 )
2019-07-13 09:33:31 +02:00
Paulus Schoutsen
4b5718431d
Guard for None entity config ( #24838 )
2019-06-28 22:23:00 -07:00
Paulus Schoutsen
3cafc1f2c6
Alexa sync state report ( #24835 )
...
* Do a sync after changing state reporting
* Fix entity config being None
2019-06-28 20:43:57 -07:00
Paulus Schoutsen
c87d6e4720
Catch uncaught Alexa error ( #24785 )
2019-06-26 20:24:20 -07:00
Paulus Schoutsen
f5f86993f1
Improve Alexa error handling ( #24745 )
2019-06-24 22:04:31 -07:00
Paulus Schoutsen
78b7ed0ebe
Clean up Google Config ( #24663 )
...
* Clean up Google Config
* Lint
* pylint
* pylint2
2019-06-21 11:17:21 +02:00
Paulus Schoutsen
4e066f4681
Fix sending update when not logged in ( #24624 )
...
* Fix sending update when not logged in
* Fix test
2019-06-19 13:58:00 -07:00
Paulus Schoutsen
6d9f1b3fd3
Notify Alexa when exposed entities change ( #24609 )
2019-06-19 10:06:28 +02:00
Paulus Schoutsen
f382be4c15
Cloud: Make sure on_connect forwards platform only once ( #24582 )
...
* Make sure on_connect forwards platform only once
* Make sure right handler
2019-06-18 13:59:40 -07:00
Paulus Schoutsen
a02b69db38
Cloud: Add Alexa report state ( #24536 )
...
* Cloud: Add Alexa report state
* Lint
* Lint
* Only track state changes when we are logged in
2019-06-17 13:50:01 -07:00
Paulus Schoutsen
6c5124e12a
Cloud: allow managing Alexa entities via UI ( #24522 )
...
* Clean up Alexa config
* Cloud: Manage Alexa entities via UI
* Add tests for new cloud APIs
2019-06-13 11:58:08 -07:00
Paulus Schoutsen
7e2278f1cc
Clean up Alexa smart home code ( #24514 )
...
* Clean up Alexa smart home code
* lint
* Lint
* Lint
2019-06-13 08:43:57 -07:00
Paulus Schoutsen
06ca04c1c8
Update hass-nabucasa to 0.14 ( #24481 )
...
* Update hass-nabucasa to 0.14
* Update owner of cloud
* Update codeowners
2019-06-12 09:29:02 -07:00
Paulus Schoutsen
f77514c6f2
Check cloud trusted proxies ( #24395 )
2019-06-07 23:08:55 -07:00
Paulus Schoutsen
6fcd56c462
Update hass-nabucasa ( #24197 )
2019-05-30 09:49:21 -07:00
Paulus Schoutsen
6947f8cb2e
Cloud: Websocket API to manage Google assistant entity config ( #24153 )
...
* Extract exposed devices function
* Add might_2fa info to trait
* Do not filter with should_expose in Google helper func
* Cloud: allow setting if Google entity is exposed
* Allow disabling 2FA via config
* Cloud: allow disabling 2FA
* Lint
* More changes
* Fix typing
2019-05-29 08:39:12 -07:00
Paulus Schoutsen
f995ab9d54
Don't pass in loop ( #23984 )
...
* Don't pass in loop
* Revert some changes
* Lint + Axis revert
* reinstate loop
* Fix a test
* Set loop
* Update camera.py
* Lint
2019-05-22 21:09:59 -07:00
Paulus Schoutsen
94a2fd542e
Fix aiohttp response serialize ( #23858 )
...
* Fix aiohttp response serialize
* Suport bytes
* Handle None
2019-05-14 11:59:27 +02:00
Robbie Trencheny
d1e44e35df
Fix unexpected error thrown if instance_domain is not set ( #23615 )
2019-05-01 22:35:12 -07:00
Paulus Schoutsen
b09f5b6743
Only include agent user ID in SYNC responses ( #23497 )
2019-04-28 09:42:05 +02:00
Paulus Schoutsen
d505f1c5f2
Always set latest pin ( #23328 )
2019-04-23 13:13:00 -07:00
Paulus Schoutsen
0533f56fe3
Ask users for a pin when interacting with locks/garage doors ( #23223 )
...
* Ask users for a pin when interacting with locks/garage doors
* Deprecate allow_unlock option
2019-04-19 14:50:21 -07:00
Joakim Plate
4a2a130bfa
Google assistant skip missing type ( #23174 )
...
* Skip entity if no device type found
* Add test for potentially skipped binary sensors
* Reorg code, add tests to ensure all exposed things have types
* Lint
* Fix tests
* Lint
2019-04-17 22:37:39 -07:00
Pascal Vizeli
073f947ca4
Bump Home Assistant Cloud 0.12 ( #23159 )
...
* Home Assistant Cloud 0.12
* Fix raising error
* Fix requirements
* Fix lint
2019-04-17 06:57:26 -07:00
Paulus Schoutsen
e8343452cd
Validate component usage ( #23037 )
...
* Update manifest validator
* Update circle
* Update text
* Typo
* fix link to codeowners
* Merge CODEOWNERS into hassfest
* Annotate errors with fixable
* Convert error to warning
* Lint
* Make abs path
* Python 3.5...
* Typo
* Fix tests
2019-04-13 13:17:01 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Paulus Schoutsen
e00ae35e07
Admin service to automatically add empty schema ( #22637 )
...
* Admin service to automatically add empty schema
* Lint
2019-04-02 09:34:11 -07:00
Paulus Schoutsen
c96804954c
Only allow admins to enable remote connection ( #22609 )
...
* Only allow admins to enable remote connection
* Protect WS API
* Lint
2019-04-01 10:22:51 +02:00
Pascal Vizeli
b57d809dad
Update hass-nabucasa & fix state ( #22385 )
...
* Update hass-nabucasa & fix state
* Fix lint
2019-03-25 09:43:15 -07:00
Pascal Vizeli
5716d0aa1a
Update hass-nabucasa 0.10 ( #22267 )
2019-03-21 14:21:13 -07:00
Pascal Vizeli
1b66520e31
Update Hass-NabuCasa 0.9 ( #22258 )
2019-03-21 19:39:24 +01:00
Pascal Vizeli
1499485a71
Update Hass-NabuCasa 0.8 ( #22177 )
2019-03-19 15:10:30 +01:00
Paulus Schoutsen
dbdf5558e6
Prevent cloud remote UI when using 127.0.0.1 as trusted network ( #22093 )
...
* Prevent cloud remote UI when using trusted networks
* Limit to 127.0.0.1 trusted network
* Update error msg
* Disable ipv6 loopback
2019-03-15 19:26:10 -07:00
Paulus Schoutsen
dc656205c4
Fix func
2019-03-15 11:11:59 -07:00
Pascal Vizeli
17ba33004c
Binary Sensor for Remote UI & Fix timezone ( #22076 )
...
* Binary Sensor for Remote UI
* Fix lint
* Revert make hass public
* Add tests
2019-03-15 10:39:53 -07:00
Robbie Trencheny
5a9e8b2d3e
Mobile App: Expose Cloud Remote UI FQDN in registration response ( #22055 )
...
* Add a callback to get the cloud remote UI FQDN
* Expose Cloud Remote UI FQDN in the registration response
* Return a URL instead of FQDN
2019-03-14 19:46:59 -07:00
Robbie Trencheny
851378739f
Fix cloud services.yaml
2019-03-14 17:48:38 -07:00
Pascal Vizeli
6a80ffa8cc
Fix Google Assistant User with Cloud ( #22042 )
...
* Fix Google Assistant User with Cloud
* Fix User Agent ID
* respell
* Fix object
* Fix tests
* fix lint
* Fix lint
2019-03-14 16:18:31 -07:00
Pascal Vizeli
186b48e2eb
Bump NabuCasa library to 0.5 ( #22010 )
2019-03-13 16:45:26 +01:00
Paulus Schoutsen
d3960bf745
Fix some cloud things ( #21977 )
2019-03-12 11:49:46 -07:00
Paulus Schoutsen
d3bab30dbe
Add cloud status ( #21960 )
...
* Add cloud status
* Expose certificate details
* store & reset last state
* Fix tests
* update tests
* update req
* fix lint
2019-03-12 15:54:04 +01:00
Pascal Vizeli
92ff49212b
Offload Cloud component ( #21937 )
...
* Offload Cloud component & Remote support
* Make hound happy
* Address comments
2019-03-11 12:21:20 -07:00
Paulus Schoutsen
14b05b0a91
Fix incorrect 2nd param
2019-03-09 19:52:50 -08:00
Paulus Schoutsen
f4f0d363ca
Better cloud check ( #21875 )
2019-03-09 12:15:16 -08:00
Penny Wood
d1038ea79f
Google Assistant: Create and pass context to service calls ( #21551 )
...
* Google Assistant: Create and pass context to service calls
* Refactor request data into separate object and pass to execute.
2019-03-05 20:00:53 -08:00
Paulus Schoutsen
f5ed6432eb
Expose create/delete cloudhook ( #21606 )
...
* Expose create/delete cloudhook
* Make sure we dont publish cloudhooks when not connected
2019-03-03 19:03:49 -08:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01:00
Paulus Schoutsen
2733919cd8
Keep cloud tokens always valid ( #20762 )
...
* Keep auth token always valid
* Remove unused refresh_auth message
* Capture EndpointConnectionError
* Lint
2019-02-05 10:45:03 +01:00
Pascal Vizeli
29b64d56be
Fix cloud webhook body ( #20739 )
...
* Bugfix cloud webhooks text response
* address comments
* Fix lint
2019-02-04 10:58:38 -08:00
Paulus Schoutsen
07b5b68a51
Improve cloud error handling ( #20729 )
...
* Improve cloud error handling
* Lint
2019-02-04 10:14:30 +01:00
Paulus Schoutsen
0fe5d567a2
Add command to refresh auth ( #20183 )
2019-01-17 19:33:01 +01:00
Paulus Schoutsen
136364f5db
Distribute reconnect ( #20181 )
2019-01-17 19:30:47 +01:00
Abílio Costa
ead38f6005
Proactive Alexa ChangeReport messages ( #18114 )
...
* Alexa: implement auth and proactive ChangeReport messages
* refactor after rebase from dev to use the new AlexaDirective and Response classes
* move to aiohttp; cleanup
* better function name
* move endpoint to config
* allow passing token function
* remove uneeded state get
* use iterable directly
Co-Authored-By: abmantis <abmantis@users.noreply.github.com>
* missing delete from previous commit
* checks for when user has no auth config
* update cloud component
* PR suggestions
* string lint
* Revert "string lint"
This reverts commit a05a1f134c9ebc7a6e67c093009744f142256365.
* linters are now happier
* more happy linters
* use internal date parser; improve json response handling
* remove unused import
* use await instead of async_add_job
* protect access token update method
* add test_report_state
* line too long
* add docstring
* Update test_smart_home.py
* test accept grant api
* init prefs if None
* add tests for auth and token requests
* replace global with hass.data
* doc lint
2019-01-03 22:28:43 +01:00
Paulus Schoutsen
557720b094
Fix cloud defaults ( #19172 )
2018-12-11 06:50:54 +01:00
Paulus Schoutsen
962358bf87
Fix cloud const ( #19052 )
...
* Fix cloud const
* Fix tests
2018-12-06 09:20:53 +01:00
Paulus Schoutsen
12f222b5e3
Don't wait for answer for webhook register ( #19025 )
2018-12-05 14:45:30 +01:00
Andrew Hayworth
b7e2522083
bugfix: ensure the `google_assistant` component respects `allow_unlock` ( #18874 )
...
The `Config` object specific to the `google_assistant` component
had a default value for `allow_unlock`. We were not overriding this
default when constructing the Config object during `google_assistant`
component setup, whereas we do when setting up the `cloud` component.
To fix, we thread the `allow_unlock` parameter down through http setup,
and ensure that it's set correctly. Moreover, we also change the
ordering of the `Config` parameters, and remove the default. Future
refactoring should not miss it, as it is now a required parameter.
2018-12-02 11:14:46 +01:00
Paulus Schoutsen
e06fa0d2d0
Default to on if logged in ( #18766 )
2018-11-28 22:17:37 +01:00
Paulus Schoutsen
7848381f43
Allow managing cloud webhook ( #18672 )
...
* Add cloud webhook support
* Simplify payload
* Add cloud http api tests
* Fix tests
* Lint
* Handle cloud webhooks
* Fix things
* Fix name
* Rename it to cloudhook
* Final rename
* Final final rename?
* Fix docstring
* More tests
* Lint
* Add types
* Fix things
2018-11-26 14:10:18 +01:00
Paulus Schoutsen
d9c7f777c5
Add cloud pref for Google unlock ( #18600 )
2018-11-20 23:23:07 +01:00
Andrew Hayworth
2bf2214d51
Add support for locks in google assistant component ( #18233 )
...
* Add support for locks in google assistant component
This is supported by the smarthome API, but there is no documentation
for it. This work is based on an article I found with screenshots of
documentation that was erroneously uploaded:
https://www.androidpolice.com/2018/01/17/google-assistant-home-can-now-natively-control-smart-locks-august-vivint-first-supported/
Google Assistant now supports unlocking certain locks - Nest and August
come to mind - via this API, and this commit allows Home Assistant to
do so as well.
Notably, I've added a config option `allow_unlock` that controls
whether we actually honor requests to unlock a lock via the google
assistant. It defaults to false.
Additionally, we add the functionNotSupported error, which makes a
little more sense when we're unable to execute the desired state
transition.
https://developers.google.com/actions/reference/smarthome/errors-exceptions#exception_list
* Fix linter warnings
* Ensure that certain groups are never exposed to cloud entities
For example, the group.all_locks entity - we should probably never
expose this to third party cloud integrations. It's risky.
This is not configurable, but can be extended by adding to the
cloud.const.NEVER_EXPOSED_ENTITIES array.
It's implemented in a modestly hacky fashion, because we determine
whether or not a entity should be excluded/included in several ways.
Notably, we define this array in the top level const.py, to avoid
circular import problems between the cloud/alexa components.
2018-11-06 10:39:10 +01:00
Paulus Schoutsen
bf54582d76
Cloud conf ( #18216 )
...
* Add original config to entityfilter
* Add alexa/google config to cloud status call
* Lint
2018-11-05 13:21:03 +01:00
Phil Frost
e16793013a
Refactor Alexa API, fix thermostats ( #17969 )
...
* Refactor Alexa API to use objects for requests
This introduces _AlexaDirective to stand in for the previous model of passing
basic dict and list data structures to and from handlers. This gives a more
expressive platform for functionality common to most or all handlers.
I had two use cases in mind:
1) Most responses should include current properties. In the case of locks and
thermostats, the response must include the properties or Alexa will give the
user a vague error like "Hmm, $device is not responding." Locks currently work,
but thermostats do not. I wanted a way to automatically include properties in
all responses. This is implemented in a subsequent commit.
2) The previous model had a 1:1 mapping between Alexa endpoints and Home
Assistant entities. This works most of the time, but sometimes it's not so
great. For example, my Z-wave thermostat shows as three devices in Alexa: one
for the temperature sensor, one for the heat, and one for the AC. I'd like to
merge these into one device from Alexa's perspective. I believe this will be
facilitated with the `endpoint` attribute on `_AlexaDirective`.
* Include properties in all Alexa responses
The added _AlexaResponse class provides a richer vocabulary for handlers.
Among that vocabulary is .merge_context_properties(), which is invoked
automatically for any request directed at an endpoint. This adds all supported
properties to the response as recommended by the Alexa API docs, and in some
cases (locks, thermostats at least) the user will get an error "Hmm, $device is
not responding" if properties are not provided in the response.
* Fix setting temperature with Alexa thermostats
Fixes https://github.com/home-assistant/home-assistant/issues/16577
2018-10-29 22:16:35 -04:00
Paulus Schoutsen
2f71f8908b
Don't use keyset ( #17984 )
2018-10-29 21:25:17 +01:00
Ville Skyttä
43048962f2
Upgrade flake8 to 3.6.0 ( #17770 )
...
* Upgrade flake8 to 3.6.0
* flake8/pylint comment tweaks
* flake8 F841 fixes
* flake8 W605 fix
* Ignore pyflakes bug #373 false positives
https://github.com/PyCQA/pyflakes/issues/373
* pycodestyle bug #811 workaround
https://github.com/PyCQA/pycodestyle/issues/811
2018-10-25 23:15:20 +03:00
Paulus Schoutsen
bdfd473aaa
Reconnect if sub info comes in that is valid again ( #17651 )
2018-10-21 12:16:24 +02:00
Paulus Schoutsen
326787ef1a
Add another 3 days leeway to give time for payment processing times ( #17542 )
2018-10-17 10:45:01 +02:00
cdce8p
7f0a50ce31
async_create_task ( #17059 )
...
* async_create_task
* Update google.py
2018-10-02 11:03:09 +02:00
Paulus Schoutsen
2e6346ca43
Break up websocket 2 ( #17028 )
...
* Break up websocket 2
* Lint+Test
* Lintttt
* Rename
2018-10-01 16:09:31 +02:00
cdce8p
9aaf11de8c
Async syntax 8/8 ( #17022 )
...
* Async syntax 8
* Pylint fixes
2018-10-01 08:52:42 +02:00
Paulus Schoutsen
092c146eae
Add option to disable specific integrations ( #16757 )
...
* Add option to disable specific integrations
* Lint
2018-09-20 23:46:51 +02:00
Paulus Schoutsen
e58836f99f
Add subscription info endpoint ( #16727 )
...
* Add subscription info endpoint
* Lint
* Lint
* Make decorator
* Lint
2018-09-20 14:53:13 +02:00
Ville Skyttä
1c42caba76
Pylint 2 useless-return fixes ( #15677 )
2018-07-25 19:35:57 +02:00
Paulus Schoutsen
e746b92e0e
Fix deprecated code ( #14681 )
2018-05-29 23:14:58 +02:00
Paulus Schoutsen
12dff5baa8
Add room hint support to Google Assistant cloud ( #14180 )
2018-04-30 21:05:29 +02:00
Paulus Schoutsen
4bd6776443
Google assistant sync ( #13392 )
...
* Add Google Assistant Sync API
* Update const.py
* Async/await
2018-03-23 12:13:52 -07:00
Paulus Schoutsen
9b1a75a74b
Refactor Google Assistant ( #12959 )
...
* Refactor Google Assistant
* Fix cloud test
* Fix supported features media player demo
* Fix query
* Fix execute
* Fix demo media player tests
* Add tests for traits
* Lint
* Lint
* Add integration tests
* Add more tests
* update logging
* Catch out of range temp errrors
* Fix cloud error
* Lint
2018-03-08 14:39:10 -08:00
Paulus Schoutsen
e5c4bba906
Remove unused cloud APIs ( #12913 )
2018-03-05 22:28:15 +01:00
Paulus Schoutsen
228b030c82
Cloud unauth ( #12840 )
...
* Handle expired refresh token better
* Retry less aggressive
* Newline
2018-03-02 10:33:05 -08:00
Paulus Schoutsen
51c06e35cf
Cloud reconnect tweaks ( #12586 )
2018-02-21 12:55:33 -08:00
Paulus Schoutsen
39847ea651
Clarify cloud error ( #12540 )
...
* Clarify cloud error
* Fix tests
2018-02-20 12:31:43 +01:00
Paulus Schoutsen
3fd61d8f45
Update voluputous ( #12463 )
...
* Update voluputous
* Fix http config
* Fix optional with default=None
* Optional, default=none
* Fix defaults in voluptuous schemas
* Fix tests
* Fix update error
* Lint
2018-02-17 10:29:14 +01:00
Paulus Schoutsen
78c44180f4
Extract data validator to own file and add tests ( #12401 )
2018-02-14 21:06:03 +01:00
Otto Winter
678f284015
Upgrade pylint to 1.8.2 ( #12274 )
...
* Upgrade pylint to 1.8.1
* Fix no-else-return
* Fix bad-whitespace
* Fix too-many-nested-blocks
* Fix raising-format-tuple
See https://github.com/PyCQA/pylint/blob/master/doc/whatsnew/1.8.rst
* Fix len-as-condition
* Fix logging-not-lazy
Not sure about that TEMP_CELSIUS though, but internally it's probably just like if you concatenated any other (variable) string
* Fix stop-iteration-return
* Fix useless-super-delegation
* Fix trailing-comma-tuple
Both of these seem to simply be bugs:
* Nest: The value of self._humidity never seems to be used anywhere
* Dovado: The called API method seems to expect a "normal" number
* Fix redefined-argument-from-local
* Fix consider-using-enumerate
* Fix wrong-import-order
* Fix arguments-differ
* Fix missed no-else-return
* Fix no-member and related
* Fix signatures-differ
* Revert "Upgrade pylint to 1.8.1"
This reverts commit af78aa00f125a7d34add97b9d50c14db48412211.
* Fix arguments-differ
* except for device_tracker
* Cleanup
* Fix test using positional argument
* Fix line too long
I forgot to run flake8 - shame on me... 🙃
* Fix bad-option-value for 1.6.5
* Fix arguments-differ for device_tracker
* Upgrade pylint to 1.8.2
* 👕 Fix missed no-member
2018-02-11 09:20:28 -08:00
Paulus Schoutsen
f2296e1ff8
Retry keyset cloud ( #12270 )
...
* Use less threads in helpers.event tests
* Add helpers.event.async_call_later
* Cloud: retry fetching keyset
2018-02-10 11:40:24 +01:00
Fabian Affolter
47e31dc9ee
Fixes for PEP257 ( #11810 )
...
* Fixes for PEP257
* More updates
2018-01-20 22:35:38 -08:00
Paulus Schoutsen
8313225b40
Move Google Assistant entity config out of customize ( #11499 )
...
* Move Google Assistant entity config out of customize
* CONF_ALIAS -> CONF_ALIASES
* Lint
2018-01-09 15:14:56 -08:00
Paulus Schoutsen
8b57777ce9
Alexa to not use customize for entity config ( #11461 )
...
* Alexa to not use customize for entity config
* Test Alexa entity config
* Improve tests
* Fix test
2018-01-05 12:33:22 -08:00
Paulus Schoutsen
b7c7041873
Add some tests to the cloud component ( #11460 )
2018-01-04 21:40:18 -08:00
Paulus Schoutsen
2cf5acdfd2
Google Assistant -> Google Actions ( #11442 )
2018-01-03 17:26:58 -08:00
Paulus Schoutsen
f314b6cb6c
Cloud Updates ( #11404 )
...
* Verify stored keys on startup
* Handle Google Assistant messages
* Fix tests
* Don't verify expiration when getting claims
* Remove email based check
* Lint
* Lint
* Lint
2018-01-03 19:16:59 +01:00
Paulus Schoutsen
cfd78f7b02
Add HTTP endpoint for resending email confirmation ( #11354 )
2017-12-29 14:46:10 +01:00
Paulus Schoutsen
7a600ea064
Add heartbeat to websocket connections ( #11298 )
2017-12-26 10:59:41 +01:00
Paulus Schoutsen
b56675a7bb
Don't connect to cloud if subscription expired ( #11163 )
...
* Final touch for cloud component
* Fix test
2017-12-16 00:42:25 -08:00
Paulus Schoutsen
168065b9bc
Update Warrant ( #11101 )
...
* Update Warrant
* Lint
2017-12-12 21:12:41 -08:00
Paulus Schoutsen
fe0a9529ed
Cloud cognito switch ( #10823 )
...
* Allow email based cognito instance
* Fix quitting Home Assistant while reconnecting
* Lint
2017-11-27 10:09:17 +01:00
Paulus Schoutsen
6e27e73474
Shopping list: add item HTTP API ( #10674 )
...
* Shopping list: add item HTTP API
* Fix order of decorators
2017-11-20 21:44:22 -08:00
Robbie Trencheny
1317297191
Implement entity and domain exclude/include for Alexa ( #10647 )
...
* Implement entity and domain exclude/include for Alexa
* Switch to using generate_filter
* Use proper domain for turn on/off calls except for groups where we must use the generic homeassistant.turn_on/off
* travis fixes
* Untangle
* Lint
2017-11-17 21:10:24 -08:00
Paulus Schoutsen
ea7ffff0ca
Cloud updates ( #10567 )
...
* Update cloud
* Fix tests
* Lint
2017-11-15 08:16:19 +01:00
Paulus Schoutsen
a4f7828363
Cloud: Authenticate with id token ( #10304 )
2017-11-03 07:30:05 +01:00
Fabian Affolter
115c59d88c
Move constant to 'const.py' and use already definied ones ( #10204 )
2017-10-29 12:32:02 +01:00
Paulus Schoutsen
6cce934f72
Improve SSL certs used by aiohttp ( #9958 )
...
* Improve SSL certs used by aiohttp
* Add certifi package
* Lint
2017-10-19 10:47:57 +02:00
Paulus Schoutsen
3700fce859
Allow flexible relayer url ( #9939 )
2017-10-17 23:00:36 -07:00
Paulus Schoutsen
0362a76cd6
Cloud connection via aiohttp ( #9860 )
...
* Cloud: connect to cloud
* Fix tests in py34
* Update warrant to 0.5.0
* Differentiate errors between unknown handler vs exception
* Lint
* Respond to cloud message to logout
* Refresh token exception handling
* Swap out bare exception for RuntimeError
* Add more tests
* Fix tests py34
2017-10-14 19:43:14 -07:00
Paulus Schoutsen
c9fc3fae6e
Update cloud auth ( #9357 )
...
* Update cloud logic
* Lint
* Update test requirements
* Address commments, fix tests
* Add credentials
2017-09-12 18:47:04 +02: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