Commit Graph

401 Commits (a8ce4d3c668bf404c3f1a20ffecc0fcf0b0878fe)

Author SHA1 Message Date
Paulus Schoutsen aabfa08834
Add if subscription is active to cloud status (#68266) 2022-03-17 09:51:07 +01:00
Paulus Schoutsen e6cd155c01
Bump hass-nabucasa to 0.54.0 (#67252) 2022-02-25 14:01:20 -08:00
Paulus Schoutsen 0269ad4738
Bump hass-nabucasa to 0.53.1 (#66845) 2022-02-18 16:04:54 -08:00
Paulus Schoutsen d3bb622a3c
Bump hass-nabucasa to 0.53.0 (#66826) 2022-02-18 11:53:02 -08:00
Paulus Schoutsen 499081df86
Cloud to avoid setting up Alexa/Google during setup phase (#66676) 2022-02-16 12:10:26 -08:00
Paulus Schoutsen cd5b69d02e
Add Google local indicator (#66610) 2022-02-16 07:54:59 -08:00
Tobias Sauerwein 3d1cad9f67
Improve handling of cloud hook registration (#65664)
Signed-off-by: cgtobi <cgtobi@gmail.com>
2022-02-16 16:42:45 +01:00
Paulus Schoutsen 94980399cf
Bump hass-nabucas to 0.52.1 (#66536) 2022-02-14 20:46:32 -08:00
GitHub Action fb96c31a27 [ci skip] Translation update 2022-02-09 00:23:56 +00:00
Tobias Sauerwein 81ad56b8ad
Add events on cloud connect and disconnect (#65215)
* Add events on cloud connect and disconnect

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Use event capture helper

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Provide listener method instead of public event

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add test for disconnect notification

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use Enum

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Add module level api

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Clean up dead code

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Flake8

Signed-off-by: cgtobi <cgtobi@gmail.com>

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-02-02 18:11:06 +01:00
GitHub Action ca7d4234e1 [ci skip] Translation update 2022-01-31 00:14:28 +00:00
J. Nick Koston 5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
Erik Montnemery 176eae701a
Unset Alexa authorized flag in additional case (#65044) 2022-01-27 09:59:58 -08:00
Erik Montnemery 94288886c3
Abort webhook flow when not connected to home assistant cloud (#64963) 2022-01-26 10:57:45 -08:00
Erik Montnemery 18ea43b927
Prevent race when loading cloud config (#64901)
* Prevent race when loading cloud config

* Tweak
2022-01-26 10:59:36 +01:00
Paulus Schoutsen 9cbdd36082
Expose if HTTP is configured for SSL (#64940) 2022-01-26 09:34:48 +01:00
Erik Montnemery 8ea2f865ed
Clarify cloud docstring (#64841) 2022-01-24 17:06:08 +01:00
epenet 3a09090a4b
Drop use of deprecated ENTITY_CATEGORIES (#64607)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-24 13:36:42 +01:00
Erik Montnemery 3575009330
Store remote domain in Cloud preferences (#64532) 2022-01-21 09:42:34 -08:00
Erik Montnemery 8c1a5f5329
Fix errors when trying to enable Alexa (#64536)
* Fix errors when trying to enable Alexa

* Update homeassistant/components/cloud/alexa_config.py

Co-authored-by: Franck Nijhof <git@frenck.dev>

* Ran black

Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-01-20 15:26:58 +01:00
Erik Montnemery 4bcf71b1f3
Prevent race when loading cloud config (#64437) 2022-01-19 09:57:54 -08:00
Erik Montnemery fd3b41dbe0
Catch exceptions when trying to enable Alexa (#64438) 2022-01-19 09:53:32 -08:00
Erik Montnemery 9718fd2534
Enable Alexa state reporting by default (#63802) 2022-01-17 23:01:43 -08:00
GitHub Action 8e14f2037c [ci skip] Translation update 2022-01-18 00:15:38 +00:00
Erik Montnemery e6899416e1
Suppress Alexa state reports when not authorized (#64064) 2022-01-17 09:14:26 -08:00
Erik Montnemery aa40476b49
Fix comments, improve readability in Cloud (#64291) 2022-01-17 14:19:11 +01:00
epenet 2c0033254b
Import cloud (#64116)
* Add type hints to cloud

* Import cloud

* Adjust smartthings tests

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 16:35:35 +01:00
epenet 44a686931e
Import webhook (#64102)
* Import webhook

* Adjust webhook trigger

* Fix pylint

* Add type hints to async_handle_webhook

* Revert changes to netatmo

Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 12:31:02 +01:00
Erik Montnemery 537dfbca18
Rename cloud's AlexaConfig to CloudAlexaConfig (#64065)
* Rename cloud's AlexaConfig to CloudAlexaConfig

* Tweak
2022-01-14 11:09:39 +01:00
Erik Montnemery be628a7c4d
Keep track of Alexa authorization status (#63979) 2022-01-13 09:47:31 -08:00
Erik Montnemery 03593aa21b
Import persistent notification (part 2) (#63899) 2022-01-13 08:42:50 +01:00
Erik Montnemery 9c9dc4cb8c
Import websocket_api (part 1) (#63905) 2022-01-11 18:24:08 +01:00
Franck Nijhof 20bdcc7fff
Replace hass.helpers: async_get_clientsession() (#63910) 2022-01-11 17:33:50 +01:00
Joakim Sørensen d1bb916070
Add client metadata to cloud register (#63794) 2022-01-10 14:49:25 +01:00
Erik Montnemery 0b28881b75
Enable Google Assistant state reporting by default (#63801) 2022-01-10 13:18:40 +01:00
epenet c7cb26cbab
Use Platform enum in load_platform [a-l] (#63750) 2022-01-10 10:30:47 +01:00
Paulus Schoutsen 1ea3a17d89
Allow sending webhooks via WS connection (#62725) 2022-01-07 10:41:36 -08:00
Loek Sangers 25fe213f22
Enable local fulfillment google assistant (#63218)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-01-05 12:09:59 -08:00
epenet fbabad1d1d
Add binary_sensor setup type hints [a-f] (#63268)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-03 13:10:41 +01:00
epenet 9e16f87ddc
Add init type hints [b-c] (#63100)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:05:18 +01:00
epenet 803eaa8e22
Ensure admin service calls are typed (#63093)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-30 21:12:40 +01:00
GitHub Action babd753610 [ci skip] Translation update 2021-12-21 00:15:06 +00:00
GitHub Action d4f8a7c056 [ci skip] Translation update 2021-12-17 00:14:01 +00:00
GitHub Action f75b325ab2 [ci skip] Translation update 2021-12-12 00:14:30 +00:00
epenet c5ffeb7809
Use new DeviceClass and EntityCategory enums in cloud (#61332)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-09 09:40:12 +01:00
GitHub Action 1f1a29cada [ci skip] Translation update 2021-12-09 00:13:16 +00:00
Paulus Schoutsen 914f7f85ec
Add local only users (#57598) 2021-11-29 14:01:03 -08:00
GitHub Action d3c020325b [ci skip] Translation update 2021-11-25 00:13:33 +00:00
GitHub Action 9e606abb0c [ci skip] Translation update 2021-11-23 00:13:54 +00:00
GitHub Action 9a85c8d894 [ci skip] Translation update 2021-11-18 00:12:48 +00:00
Erik Montnemery dec54488e8
Enable basic type checking for cloud (#55337)
* Enable basic type checking for cloud

* Update mypy settings

* Address review comment

* Fix rebase mistakes

* Correct decorator order
2021-11-17 09:07:01 +01:00
Paulus Schoutsen afa7ca1222
Drop block on local proxies from HA Cloud (#59334) 2021-11-14 08:11:12 -08:00
GitHub Action f00effaba2 [ci skip] Translation update 2021-11-13 00:11:56 +00:00
GitHub Action e35b83081e [ci skip] Translation update 2021-11-08 00:12:31 +00:00
GitHub Action c8d8513a1a [ci skip] Translation update 2021-11-05 00:13:45 +00:00
J. Nick Koston 10d6247fee
Bump to aiohttp 3.8.0 (#58974) 2021-11-04 10:07:50 -05:00
Marc Mueller 7063c05127
Use assignment expressions 33 (#58717) 2021-10-30 16:32:41 +02:00
Erik Montnemery a0a8b9db26
Add entity category 'system' (#58595)
* Add entity category 'hidden'

* Update cloud

* Update Google assistant

* Update Alexa

* Fix tests

* Add ENTITY_CATEGORIES constant

* Rename ENTITY_CATEGORY_HIDDEN to ENTITY_CATEGORY_SYSTEM

* Correct import in motioneye
2021-10-28 14:36:41 +02:00
Ville Skyttä 73d192b3f3
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* (#57989) 2021-10-22 19:43:40 +02:00
Marc Mueller 184e0d7fdf
Use assignment expressions 26 (#58187) 2021-10-22 11:31:17 +02:00
GitHub Action 7a7f5ccc31 [ci skip] Translation update 2021-10-20 00:12:17 +00:00
Marc Mueller 2b72b7b7b9
Use assignment expressions 09 (#57790) 2021-10-17 20:19:56 +02:00
Marc Mueller 5048bad050
Use assignment expressions 05 (#57785) 2021-10-17 19:56:00 +02:00
GitHub Action c76e15149c [ci skip] Translation update 2021-10-17 00:12:27 +00:00
Erik Montnemery 0f2b5ea28e
Don't expose config or diagnostic entities to cloud (#57771) 2021-10-15 09:35:32 -07:00
Paulus Schoutsen 12b6922875
Add entity category to cloud (#57747) 2021-10-15 08:17:40 +02:00
Paulus Schoutsen e34c985534
Simplify cloud request connection handling (#56243)
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2021-09-22 07:51:31 -07:00
Paulus Schoutsen dec7877671
Handle logout prefs update for Google/Alexa (#56045) 2021-09-10 09:08:43 -07:00
GitHub Action f9e6e616f4 [ci skip] Translation update 2021-09-08 00:10:52 +00:00
GitHub Action 9da3fa5d75 [ci skip] Translation update 2021-09-07 00:11:29 +00:00
Paulus Schoutsen 93083513b4
Bump hass-nabucasa 49 (#55823) 2021-09-06 16:05:33 -07:00
GitHub Action f8ebc31576 [ci skip] Translation update 2021-09-05 00:11:36 +00:00
GitHub Action 19dcb19d07 [ci skip] Translation update 2021-09-04 00:13:17 +00:00
GitHub Action 8af0cb9e65 [ci skip] Translation update 2021-09-03 00:16:18 +00:00
GitHub Action 6b4f2e6f8f [ci skip] Translation update 2021-09-02 00:20:52 +00:00
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