Commit Graph
68 Commits
Author SHA1 Message Date
epenetGitHubcopilot-swe-agent[bot] <[email protected]>frenck
d766aae436 Remove import annotations from components (#169536)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: frenck <[email protected]>
2026-04-30 21:14:48 +02:00
epenetandGitHub 25ce57424c Remove more components from _IGNORE_ROOT_IMPORT in pylint plugin (#154660) 2025-10-17 08:35:18 +02:00
Joakim SørensenandGitHub 83ee380b17 Bump hass-nabucasa from 0.111.2 to 1.0.0 and refactor related code (#150566) 2025-08-15 11:35:52 +02:00
epenetandGitHub 161b62d8fa Drop alias from local DOMAIN import (#144867) 2025-05-14 12:24:46 +02:00
c759512c70 Prevent callback decorator on coroutine functions (#126429)
* Prevent callback decorator on async functions

* Adjust

* Adjust

* Adjust components

* Adjust tests

* Rename

* One more

* Adjust

* Adjust again

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <[email protected]>

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2024-09-23 02:55:55 +02:00
Marc MuellerandGitHub d24cf9e4ec Improve generic event typing [cloud] (#114728) 2024-04-06 13:59:12 +02:00
Erik MontnemeryandGitHub 23e9be756d Fix exception when logging out from cloud (#114306)
* Fix exception when logging out from cloud

* Add test
2024-03-27 16:02:47 +01:00
Marc MuellerandGitHub 81c34ac952 Fix spelling [docstrings + comments] (#114168) 2024-03-25 11:33:00 +01:00
Marc MuellerandGitHub ff3a801936 Add empty line after module docstring [a-d] (#112697) 2024-03-08 14:51:32 +01:00
Erik MontnemeryandGitHub 9b91da23c4 Improve logging of google_assistant messages (#110637)
* Improve logging of google_assistant messages

* Add tests

* Add test
2024-02-26 11:43:31 +01:00
a51d3b4286 Remove store from google_assistant AbstractConfig (#109877)
* Remove store from google_assistant AbstractConfig

* Bump minor version of google_assistant store

* Fix test

* Improve comments

* Fix typo

* Refactor

* Update homeassistant/components/google_assistant/http.py

Co-authored-by: Martin Hjelmare <[email protected]>

* Fix bug, add tests

---------

Co-authored-by: Martin Hjelmare <[email protected]>
2024-02-12 19:24:21 +01:00
Erik MontnemeryandGitHub 0cb913370f Rename google_assistant.AbstractConfig.get_local_agent_user_id (#109798)
* Rename google_assistant.AbstractConfig get_local_agent_user_id to get_local_user_id

* Fix
2024-02-06 15:40:12 +01:00
Erik MontnemeryandGitHub 9d42455955 Move async_deinitialize to google_assistant AbstractConfig (#109736) 2024-02-05 19:53:22 +01:00
Erik MontnemeryandGitHub 816c2e9500 Improve enabling of Google local fulfillment (#109192)
* Improve enabling of Google local fulfillment

* Add test

* Improve test coverage
2024-01-31 16:28:27 +01:00
J. Nick KostonandGitHub 4b7a313ece Use identity checks for CoreState (#107846)
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
c5b32d6307 Add doorbell event to google_assistant (#97123)
* First attempt async_report_state_all

* Move notificationSupportedByAgent to SYNC response

* Make notificationSupportedByAgent conditional

* Add generic sync_options method

* Report event

* Add event_type as ID

* User UUID, imlement query_notifications

* Refactor query_notifications

* Add test

* MyPy

* Unreachable code

* Tweak

* Correct notification message

* Timestamp was wrong unit, it should be in seconds
* Can only allow doorbell class, since it's the only type

* Fix test

* Remove unrelated changes - improve coverage

* Additional tests

---------

Co-authored-by: Joakim Plate <[email protected]>
2023-09-25 23:20:02 +02:00
Erik MontnemeryandGitHub 4802e7f93a Add debug logs to cloud migration (#94151) 2023-06-07 13:16:23 +02:00
Erik MontnemeryandGitHub 33044bc153 Fix migration of Google Assistant cloud settings (#94148) 2023-06-07 11:14:51 +02:00
Erik MontnemeryandGitHub 937ebb374c Enable strict type checks of cloud (#92576)
* Enable strict type checks of cloud

* Fix circular import

* Address review comments

* Apply suggestions from code review
2023-05-24 11:46:11 +02:00
19dcc8c88f Re-run expose entities migration if first time failed (#92564)
* Re-run expose entities migration if first time failed

* Count number of exposed entities

* Add tests

---------

Co-authored-by: Erik <[email protected]>
2023-05-05 08:11:09 -04:00
b6664ce367 Improve cloud migration (#92520)
* Improve cloud migration

* Tweak

* Use entity_ids func

---------

Co-authored-by: Paulus Schoutsen <[email protected]>
2023-05-04 23:10:43 -04:00
Erik MontnemeryandGitHub e14be8b0ab Force migration of cloud settings to exposed_entities (#92499) 2023-05-04 09:53:28 -04:00
Erik MontnemeryandGitHub a9d8bc989e Migrate cloud settings for all Google entities (#92416) 2023-05-03 18:56:48 +02:00
Erik MontnemeryandGitHub 31de1b17e8 Allow setting google disable 2fa flag on any entity (#92403)
* Allow setting google disable 2fa flag on any entity

* Fix test

* Include disable_2fa flag in cloud/google_assistant/entities/get
2023-05-03 09:55:38 -04:00
Erik MontnemeryandGitHub 4860a8d1e8 Don't use storage collection helper in ExposedEntities (#92396)
* Don't use storage collection helper in ExposedEntities

* Fix tests
2023-05-03 12:39:22 +02:00
Erik MontnemeryandGitHub e3c16e634b Allow exposing entities not in the entity registry to assistants (#92363) 2023-05-02 22:08:09 +02:00
Erik MontnemeryandGitHub 65c9d4a4ae Avoid exposing unsupported entities to Google Assistant (#92105)
* Avoid exposing unsupported entities to Google Assistant

* Add Google Assistant specific support sets

* Add test
2023-04-27 10:38:21 +02:00
Erik MontnemeryandGitHub 44c89a6b6c Refactor handling of exposed entities for cloud Alexa and Google (#89877)
* Refactor handling of exposed entities for cloud Alexa

* Tweak WS API

* Validate assistant parameter

* Address some review comments

* Refactor handling of exposed entities for cloud Google

* Raise when attempting to expose an unknown entity

* Add tests

* Adjust cloud tests

* Allow getting expose new entities flag

* Test Alexa migration

* Test Google migration

* Add WS command cloud/google_assistant/entities/get

* Fix return value

* Update typing

* Address review comments

* Rename async_get_exposed_entities to async_get_assistant_settings
2023-04-06 13:09:45 -04:00
epenetandGitHub b03f4fa1d3 Improve type hints in cloud (#87263) 2023-02-03 17:10:25 +01:00
epenetandGitHub 7871a517a8 Import constants from root (#78271) 2022-09-12 18:53:05 +02:00
Paulus SchoutsenandGitHub 10b083bbf5 Sync empty entities when Google is disabled in cloud (#72806) 2022-06-23 11:41:34 +02:00
Paulus SchoutsenandGitHub fbb08994f4 Only sync when HA is started up as we already sync at startup (#72940) 2022-06-02 16:15:04 -07:00
Paulus SchoutsenandGitHub d57a650290 Don't trigger entity sync when Google Assistant gets disabled (#72805) 2022-06-01 12:12:54 +02:00
Paulus SchoutsenandGitHub 6d74149f22 Sync entities when enabling/disabling Google Assistant (#72791) 2022-05-31 14:58:45 -07:00
2e3e7f1e94 Sync area changes to google (#70936)
Co-authored-by: Martin Hjelmare <[email protected]>
2022-04-27 22:32:13 -07:00
Erik MontnemeryandGitHub ff7d5c92d5 Exclude hidden entities from cloud (#68557) 2022-03-23 12:42:45 +01:00
Paulus SchoutsenandGitHub 499081df86 Cloud to avoid setting up Alexa/Google during setup phase (#66676) 2022-02-16 12:10:26 -08:00
3a09090a4b Drop use of deprecated ENTITY_CATEGORIES (#64607)
Co-authored-by: epenet <[email protected]>
2022-01-24 13:36:42 +01:00
Erik MontnemeryandGitHub aa40476b49 Fix comments, improve readability in Cloud (#64291) 2022-01-17 14:19:11 +01:00
25fe213f22 Enable local fulfillment google assistant (#63218)
Co-authored-by: Paulus Schoutsen <[email protected]>
2022-01-05 12:09:59 -08:00
Erik MontnemeryandGitHub 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äandGitHub 73d192b3f3 Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* (#57989) 2021-10-22 19:43:40 +02:00
Marc MuellerandGitHub 184e0d7fdf Use assignment expressions 26 (#58187) 2021-10-22 11:31:17 +02:00
Erik MontnemeryandGitHub 0f2b5ea28e Don't expose config or diagnostic entities to cloud (#57771) 2021-10-15 09:35:32 -07:00
Paulus SchoutsenandGitHub dec7877671 Handle logout prefs update for Google/Alexa (#56045) 2021-09-10 09:08:43 -07:00
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 <[email protected]>
2021-09-01 09:54:54 -07:00
Paulus SchoutsenandGitHub f472219c68 Set up cloud semi-dependencies at start (#51313) 2021-06-01 01:35:31 +02:00
05aeff5591 Describe Google Assistant events (#49141)
Co-authored-by: Martin Hjelmare <[email protected]>
2021-04-13 09:31:01 -07:00
03b7b1305c Cloud: Expose if google is registered in status + check on login (#48260)
Co-authored-by: Paulus Schoutsen <[email protected]>
2021-03-29 19:26:51 +02:00
Bram KragtenandGitHub b1d0b37d2c Google assistant: disconnect user agent when not found in google (#48233) 2021-03-23 15:04:32 -07:00