Commit graph

24 commits

Author SHA1 Message Date
epenet
84d4a1ce34
Use reauth helpers in google_photos (#128585) 2024-10-18 09:02:44 +02:00
Michael
8a6a13db0e
Add missing translation string for re-auth flows (#128055) 2024-10-09 21:12:00 +02:00
Marc Mueller
c1b24e6ba2
Small typing improvements (#126818)
* Add from __future__ import annotations

* Use PEP 695 type aliases

* Fix generator typing
2024-09-26 13:51:27 +02:00
Erik Montnemery
c638537731
Use 'select' instead of 'click' or 'press' when guiding users in flows (#126731) 2024-09-25 13:37:43 +02:00
Allen Porter
e351f8ba07
Bump python-google-photos-library-api to 0.12.1 (#126709) 2024-09-25 08:45:58 +02:00
Allen Porter
412489c102
Require Google Photos uploads to target an album (#126651)
* Require uploads to target an album

* Remove edge case where albums are not loaded on startup which no longer happens

* Update homeassistant/components/google_photos/strings.json

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 17:26:33 +02:00
Allen Porter
437bbe5c6e
Limit Google Photos media source to Home Assistant created albums (#126653) 2024-09-24 17:22:24 +02:00
Allen Porter
27bed0cdcb
Update Google Photos to have a DataUpdateCoordinator for loading albums (#126443)
* Update Google Photos to have a data update coordiantor for loading albums

* Remove album from services

* Remove action string changes

* Revert services.yaml change

* Simplify integration by blocking startup on album loading

* Update homeassistant/components/google_photos/coordinator.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-24 07:34:40 -07:00
epenet
fb400af7d2
Prevent trailing line feeds in translation values (#126446)
* Prevent trailing line feeds in translation values

* Fixup strings
2024-09-23 13:02:39 +02:00
Allen Porter
b107b2c7bf
Enforce a Google Photos upload action file size limit (#126437)
* Set a Google Photos upload file size limit

* Update homeassistant/components/google_photos/services.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Replace strings with constants

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-22 09:30:37 -07:00
Allen Porter
5f74dbcfc2
Bump google-photos-library-api to 0.12.0 (#126433)
Bump google-photos-library-api==0.12.0
2024-09-22 09:03:21 -07:00
Allen Porter
bd4bbb30ec
Bump google-photos-library-api to 0.11.1 (#126430) 2024-09-22 16:42:50 +02:00
Allen Porter
505fb3738f
Update the Google Photos integration to limit scope to Home Assistant created content (#126398) 2024-09-21 10:56:13 -07:00
Allen Porter
c07a9e9d59
Add dependency on google-photos-library-api: Change the Google Photos client library to a new external package (#125040)
* Change the Google Photos client library to a new external package

* Remove mime type guessing

* Update tests to mock out the client library and iterators

* Update homeassistant/components/google_photos/media_source.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-09-03 13:54:43 +02:00
Allen Porter
9fff3a13a5
Clarify comment in google photos upload service (#125042) 2024-09-01 21:49:38 -07:00
Allen Porter
30772da0e1
Add Google Photos media source support for albums and favorites (#124985) 2024-08-31 14:39:18 -07:00
Allen Porter
ef84a8869e
Add Google Photos service for uploading content (#124956)
* Add Google Photos upload support

* Fix format

* Merge in scope/reauth changes

* Address PR feedback

* Fix blocking i/o in async
2024-08-31 21:16:14 +02:00
Allen Porter
d3879a36d1
Add loggers for Google Photos integration (#124986) 2024-08-31 21:11:22 +02:00
Allen Porter
81f5068354
Clean up Google Photos media source (#124977)
* Clean up Google Photos media source

* Fix typo

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-08-31 08:22:50 -07:00
Allen Porter
2cab9f7fe9
Address additional Google Photos integration feedback (#124957)
* Address review feedback

* Fix typing for  arguments
2024-08-31 10:10:45 +02:00
Allen Porter
c1eb5f8b74
Fix Google Photos get media calls (#124958) 2024-08-31 10:01:51 +02:00
Allen Porter
582b7eab66
Add missing translation for Google Photos reauth (#124959) 2024-08-31 10:01:27 +02:00
Allen Porter
cb742a677c
Add Google Photos reauth support (#124933)
* Add Google Photos reauth support

* Update tests/components/google_photos/test_config_flow.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-30 17:31:24 +02:00
Allen Porter
c01bb44757
Add Google Photos integration (#124835)
* Add Google Photos integration

* Mark credentials typing

* Add code review suggestions to simpilfy google_photos

* Update tests/components/google_photos/conftest.py

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Fix comment typo

* Update test fixtures from review feedback

* Remove unnecessary test for services

* Remove keyword argument

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-30 07:27:19 -07:00