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
epenet
71dc98a39c
Improve hass_ws_client type hint in tests ( #89703 )
2023-03-14 16:31:40 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
b68f502769
Add type hints to integration tests (part 7) ( #87980 )
2023-02-13 09:53:09 +01:00
Allen Porter
4d186366bd
Improve Google Calendar config flow error message when API disabled ( #87889 )
2023-02-12 18:28:44 +01:00
Allen Porter
7ff1265b10
Add service to create calendar events ( #85805 )
2023-01-25 12:43:50 +01:00
Allen Porter
6b6f115d7e
Fix handling of empty google_calendars.yaml file ( #84909 )
...
fixes undefined
2022-12-31 11:50:56 +01:00
Allen Porter
2049993941
Check google calendar API scope to determine if write access is enabled ( #84749 )
...
* Check google calendar API scope to determine if write access is enabled
* Add API scope for calendar service for creating events
2022-12-29 11:00:31 +01:00
Allen Porter
f9779d3e97
Bump gcal-sync to 4.1.0 ( #84474 )
...
* Bump gcal-sync to 4.1.0
* Update test with UNTIL improvements
2022-12-22 23:28:12 -05:00
Allen Porter
d41fe01736
Don't allow google calendar create/delete for yaml/search calendars ( #83604 )
...
* Update tests/components/google/test_calendar.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Don't allow google calendar create/delete for yaml/search calendars
* Revert incorrect docstring update
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-21 07:36:37 -08:00
Allen Porter
4e1b399efd
Fix google calendar recurrence rule create and view ( #84330 )
...
* Fix bug in google calendar recurrence rule handling
* Convert multiline ternary operator expressions to if block
2022-12-21 07:36:20 -08:00