Jan Bouwhuis
3aae9b629f
Add exception translation for entity action not supported ( #131956 )
2024-12-01 16:53:06 +01:00
Joel Hawksley
9bf0cbd659
Omit declined Google Calendar events ( #128900 )
...
* Omit decline Google Calendar events
* move comment to top of function and update
* Apply suggestions from code review
* import ResponseStatus
2024-10-27 21:54:09 -07:00
Allen Porter
5816342bed
Remove dead code and increase test coverage for google config flow ( #128690 )
2024-10-19 09:48:36 +02:00
epenet
120e17fa1e
Improve logic for detecting unused ignore translations ( #128441 )
2024-10-18 17:59:06 +02:00
epenet
f41494b7cc
Ensure config_flow abort reasons have translations ( #128140 )
...
* Ensure config_flow abort reasons have translations
* Ignore fake_integration in application_credentials
* Mark gardena_bluetooth as needs fixing
* Mark google as needs fixing
* Mark google_assistant_sdk as needs fixing
* Mark homewizard as needs fixing
* Mark homeworks as needs fixing
* Mark honeywell as needs fixing
* Mark jewish_calendar as needs fixing
* Mark lg_netcast as needs fixing
* Mark lifx as needs fixing
* Mark lyric as needs fixing
* Mark madvr as needs fixing
* Mark matter as needs fixing
* Mark melcloud as needs fixing
* Mark motioneye as needs fixing
* Mark ollama as needs fixing
* Mark philips_js as needs fixing
* Mark spotify as needs fixing
* Mark srp_energy as needs fixing
* Mark subaru as needs fixing
* Mark tplink as needs fixing
* Mark yolink as needs fixing
* Mark youtube as needs fixing
* Fix incorrect comment
2024-10-14 16:39:10 +02:00
Allen Porter
c38f23400c
Don't add the same config entry id twice in google tests ( #127457 )
...
Don't add the same config entry id twice in the test
2024-10-03 17:23:58 +02:00
Allen Porter
c5ebd53079
Add a working location google calendar entity ( #127016 )
2024-10-01 12:14:23 +02:00
epenet
99335a07e5
Use start_reauth helper method in integration tests (e-g) ( #124785 )
...
* Use start_reauth helper method in integration tests (e-g)
* Include fireservicerota
2024-08-28 15:47:57 +02:00
epenet
25d33e96cc
Add missing hass type hint in component tests (g) ( #124203 )
2024-08-19 00:29:26 -07:00
epenet
3e967700fd
Add missing return type in test __init__ method (part 2) ( #123939 )
...
* Add missing return type in test __init__ method (part 2)
* Adjust
* One more
* One more
* More
2024-08-14 17:59:15 +02:00
epenet
b949240d4a
Improve type hints in google tests ( #121169 )
2024-07-04 05:56:01 -07:00
epenet
8709c668cc
Remove unused diagnostics fixtures ( #121066 )
2024-07-03 15:57:02 +02:00
Marc Mueller
921430d497
Import Generator from collections.abc (3) ( #120916 )
2024-07-01 12:09:11 +02:00
Allen Porter
7d8cbbaacb
Bump gcal_sync to 6.1.3 ( #120278 )
2024-06-29 17:45:51 +02:00
epenet
fb1b0058ee
Fix consider-using-tuple pylint warnings in component tests ( #119464 )
...
* Fix consider-using-tuple pylint warnings in component tests
* Apply su
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
---------
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
2024-06-12 15:50:27 +02:00
epenet
5f309b69cf
Add type hints to current_request_with_host in tests ( #119054 )
2024-06-07 11:40:23 +02:00
Marc Mueller
33ed4fd862
Import Generator from typing_extensions (3) ( #118990 )
2024-06-06 17:28:59 +02:00
epenet
fb51163075
Move socket_enabled fixture to decorator ( #118847 )
2024-06-06 17:27:38 +02:00
epenet
857b5c9c1b
Fix type hints in google tests ( #118941 )
2024-06-06 12:19:41 +02:00
epenet
b81f0b600f
Move current_request_with_host fixture to decorator ( #118810 )
...
* Move current_request_with_host fixture to decorator
* One more
2024-06-04 17:50:22 +02:00
epenet
b54a68750b
Add type hints for FixtureRequest in tests ( #118779 )
2024-06-04 10:37:54 +02:00
Marc Mueller
1ad8151bd1
Use PEP 695 type alias in tests ( #117797 )
2024-05-20 19:03:04 +02:00
J. Nick Koston
5a609c34bb
Fix blocking I/O in the event loop when loading timezones ( #117721 )
2024-05-20 11:06:03 +02:00
Marc Mueller
3cd1717437
Improve YieldFixture typing ( #117686 )
2024-05-18 12:35:02 +02:00
Sid
3efee10b95
Enable Ruff RUF013 ( #115333 )
2024-04-10 08:55:59 +02:00
epenet
0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) ( #114925 )
2024-04-05 17:16:55 +02:00
Joost Lekkerkerker
b9281327c4
Use FlowResultType enum in config flow tests A-M ( #114681 )
2024-04-03 09:21:17 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Sid
27e844e3bf
Add ruff B005, B015, B032 and fix occurrences ( #113543 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-15 17:48:37 -10:00
J. Nick Koston
e29b012eba
Fix failing google diagnostics test ( #113095 )
2024-03-11 11:05:49 -10:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
J. Nick Koston
9c82df4b98
Fix duplicate config entry additions in tests ( #107984 )
...
zha and plex still add the same config entry multiple times
but they are going to need seperate PRs as they have more
complex logic
2024-01-13 21:01:18 -05:00
Erik Montnemery
ddf3a36061
Improve calls to async_show_progress in google ( #107788 )
2024-01-11 16:47:53 +01:00
Jan-Philipp Benecke
0ae0331c5c
Migrate google related tests to use freezegun ( #105552 )
...
* Migrate google related tests to use freezegun
* retrigger CI
* Fix google tests
* Add timezone to config_entry_token_expiry
* Separate config_entry_token_expiry from token_expiry
* Also test token refresh for offset-naive tokens
* retrigger CI
* Apply code review suggestion
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* Run ruff-format
---------
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-12-21 12:23:01 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ( #106080 )
...
* Disable Ruff rules that may conflict with the formatter
* Upgrade Ruff to 0.1.8
- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8
* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Jan Bouwhuis
8721327176
Fix CI test_invalid_rrule_fix test by freezing the time ( #105294 )
2023-12-08 14:35:01 +01:00
Allen Porter
abb1328a67
Fix for Google Calendar API returning invalid RRULE:DATE rules ( #103870 )
2023-11-12 13:44:26 -05:00
Jan-Philipp Benecke
04a497343d
Update f-g* tests to use entity & device registry fixtures ( #103841 )
2023-11-12 13:07:38 +01:00
Allen Porter
3f70437888
Add support to Google Calendar for Web auth credentials ( #103570 )
...
* Add support to Google Calendar for webauth credentials
* Fix broken import
* Fix credential name used on import in test
* Remove unnecessary creds domain parameters
* Remove unnecessary guard to improve code coverage
* Clarify comments about credential preferences
* Fix typo
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-10 22:49:10 -08:00
Allen Porter
6f5a72edf2
Bump gcal_sync to 5.0.0 ( #102010 )
...
* Bump gcal_sync to 5.0.0
* Update snapshots
2023-10-15 11:24:41 -07:00
Allen Porter
bd38fd9516
Add google calendar required feature for create event service ( #101741 )
...
* Add google calendar required feature for create event service
* Update docstring
2023-10-10 20:48:46 -07:00
Allen Porter
1635cbb8a6
Add a google calendar diagnostics platform ( #101175 )
2023-10-06 17:08:50 +02:00
Ville Skyttä
902f997ee0
Fix google invalid token expiry test init for UTC offsets > 0 ( #100533 )
...
```
$ python3 -q
>>> import datetime, time
>>> time.tzname
('EET', 'EEST')
>>> datetime.datetime.max.timestamp()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: year 10000 is out of range
```
2023-09-18 12:39:43 +03:00
Ville Skyttä
9da192c752
Avoid use of `datetime.utc*` methods deprecated in Python 3.12 ( #93684 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-08-24 16:38:22 +02:00
Allen Porter
93eac97983
Relax the constraint that events must have a consistent timezone for start/end ( #91788 )
2023-04-21 10:25:52 -04:00
Allen Porter
14b95ffe3a
Relax calendar event validation to allow existing zero duration events ( #91129 )
...
Relax event valudation to allow existing zero duration events
2023-04-10 10:04:42 -04:00
Allen Porter
23af02b941
Make location optional in google calendar create service ( #91061 )
2023-04-08 22:40:39 -04:00
Luca Angemi
6d8eaa0bee
Add location field to calendar create_event service supported by Google Calendar and Local Calendar ( #90098 )
...
* Update __init__.py
* Update __init__.py
* Update __init__.py
* Update calendar.py
* Update calendar.py
* Update services.yaml
* Update services.yaml
* Update calendar.py
* Update calendar.py
* Update __init__.py
* Update services.yaml
* Update services.yaml
* Update test_calendar.py
* Update test_init.py
* Update test_init.py
* Update test_init.py
* Update test_init.py
* Update __init__.py
* Update const.py
* Address changes to service.yaml
* Address changes to service.yaml
* Update test_calendar.py
* Update test_calendar.py
* Update test_calendar.py
* Update conftest.py
* Update conftest.py
* Update calendar.py
* Update __init__.py
2023-03-25 09:43:49 -07:00
Allen Porter
4ddcb14053
Add additional CalendarEvent validation ( #89533 )
...
Add additional event validation
2023-03-14 20:27:38 -04:00