Commit graph

55 commits

Author SHA1 Message Date
Allen Porter
5cc8cfb209
Update local_calendar/todo to avoid blocking in the event loop (#127048) 2024-09-30 12:51:41 +02:00
Raul Camacho
5399e2b648
Add Local Calendar ics events import on calendar creation (#117955)
* add optional config_flow step of uploading .ics file to import local calendar events

* feat: add unit test for import_ics step

* fix: remove unneeded test patch

* feat: add helper for moving ics to storage location

* move helper to config_flow

* ruff

* fix tests; add test for invalid ics content

* Update homeassistant/components/local_calendar/config_flow.py

* Update import flow with radio button and improved text

Signed-off-by: Allen Porter <allen.porter@gmail.com>

* Remove commented out code

* Update with lint fixes

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>

---------

Signed-off-by: Allen Porter <allen.porter@gmail.com>
Co-authored-by: Allen Porter <allen.porter@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2024-09-28 22:15:24 -07:00
Franck Nijhof
8d98085873
Update ical to 8.2.0 (#126954) 2024-09-27 20:29:18 +02:00
Allen Porter
aa5ebaf613
Bump ical to 8.1.1 (#120888) 2024-07-01 10:46:10 +02:00
Allen Porter
fa9bced6b0
Load local calendar ics in background thread to avoid timezone I/O in event loop (#120276) 2024-06-24 08:43:42 +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
Allen Porter
25c97a5eab
Bump ical to 8.0.1 (#117219) 2024-05-10 21:25:16 -04:00
Allen Porter
e29b301dd1
Bump ical to 8.0.0 (#115907)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-21 15:52:47 -07:00
Allen Porter
a9da9ee443
Bump ical to 7.0.3 to fix local-todo persisted with invalid DTSTART values (#113526) 2024-03-16 12:03:26 -10:00
Allen Porter
23f9aea64d
Bump ical to 7.0.1 and always use home assistant timezone for local todo dtstart (#113034) 2024-03-10 23:13:02 -04:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] (#112700) 2024-03-08 09:01:29 -05:00
Erik Montnemery
52e7912caf
Migrate integrations i-m to generic flowhandler (#111863) 2024-02-29 20:08:46 +01:00
Cody C
a656e14b20
Fix Local Calendar changing user-specified capitalisation of calendar names (#108454)
When you create a Local Calendar, say, "Home Maintenance", the integration overrides this to instead be "Home maintenance".
2024-02-17 16:03:13 -08:00
Allen Porter
bf1b5252c0
Bump ical to 7.0.0 (#110811) 2024-02-17 22:58:59 +01:00
Allen Porter
72c6eb8885
Bump ical to 6.1.1 (#105462) 2023-12-10 15:46:27 -08:00
Allen Porter
1d5fcfc7c8
Improve local calendar based on local todo review feedback (#103483)
* Improve local calendar based on local todo review feedback

* Revert fakestore change to diagnose timeout

* Revert init changes

* Revert and add assert
2023-11-12 00:14:08 +01:00
Allen Porter
048b989b2b
Bump ical to 6.1.0 (#103759) 2023-11-11 12:57:05 +01:00
Allen Porter
aa8b36c4e2
Bump ical to 6.0.0 (#103482) 2023-11-06 08:54:30 +01:00
Allen Porter
f0f3a43b09
Bump ical to 5.1.0 (#102483) 2023-10-21 12:40:33 -07:00
Allen Porter
960d66e168
Bump ical to 5.0.1 (#98998) 2023-08-25 09:43:11 +02: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
Jan-Philipp Benecke
436cda1489
Make local calendar integration title translatable (#95805) 2023-07-04 23:35:32 -07:00
Allen Porter
7d6595f755
Delete the local calendar store when removing the config entry (#95599)
* Delete calendar store when removing the config entry

* Unlink file on remove with tests
2023-07-02 22:42:39 -04:00
Allen Porter
50605e62bd
Bump ical to 4.5.4 (#94894) 2023-06-20 07:32:03 -07:00
Robert Hillis
464c81ec9d
Add missing fstrings in Local Calendar (#92288) 2023-04-30 06:15:57 -07:00
Allen Porter
cf9ada3b0e
Fix all day event coercion logic (#91169) 2023-04-10 12:05:08 -04:00
Allen Porter
3595e2fd5a
Coerce previously persisted local calendars to have valid durations (#90970) 2023-04-06 16:41:38 -04:00
Allen Porter
ae41547b73
Update calendar to always request start/end dates in local time rather than UTC (#90386) 2023-03-28 12:25:44 +02:00
Allen Porter
fa35867765
Bump ical to 4.5.1 and set PRODID for home assistant in local calendar ics (#90291) 2023-03-26 23:00:45 +02: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
04a99fdbfc
Add local calendar diagnostics platform (#89776)
* Add local calendar diagnostics platform

* Use redaction from ical

* Update diagnostics for new ical version

* Apply suggestions from code review

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Use snapshot tests for local calendar diagnostics

* Setup diagnostics directly in tests rather than via dependencies

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-03-16 23:05:01 -04:00
Allen Porter
b588b8b215
Bump ical to 4.5.0 (#89744) 2023-03-15 18:06:46 +01:00
Allen Porter
e1e0400b16
Fix local calendar issue with events created with fixed UTC offsets (#88650)
Fix issue with events created with UTC offsets
2023-02-23 13:37:15 -05:00
Erik Montnemery
90d7fb8418
Sort manifests 5 (#87026) 2023-02-08 20:35:25 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
GitHub Action
dffc913f9e [ci skip] Translation update 2023-01-14 00:22:57 +00:00
GitHub Action
0b163aac7d [ci skip] Translation update 2023-01-08 00:26:22 +00:00
Allen Porter
07fa7504fb
Bump ical to 4.2.9 (#85401) 2023-01-07 15:28:37 -08:00
Allen Porter
624c93bb38
Add Local calendar edit support (#84141)
* Add update support for calendars and implement in local calendar

* Fix supported feature for update calendar

* Increase test coverage for websocket error cases

* Improve test coverage for update failure cases

* Improve test coverage by sharing code between update and create

* Update homeassistant/components/calendar/__init__.py

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

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-12-27 12:36:43 -08:00
Allen Porter
24e11c6dcb
Bump ical to 4.2.8 (#84455)
fixes undefined
2022-12-22 20:13:40 +01:00
Allen Porter
df23f03131
Bump ical to 4.2.4 (#84248) 2022-12-19 10:00:38 -08:00
Allen Porter
a3ab6a99e3
Bump ical to 4.2.3 (#84104) 2022-12-17 19:42:55 -05:00
GitHub Action
cfa08c5229 [ci skip] Translation update 2022-12-15 00:24:38 +00:00
Allen Porter
16f94e68b3
Improve local calendar input validation error handling (#83563) 2022-12-08 16:44:45 -05:00
Allen Porter
7091781692
Bump ical to 4.2.2 (#83520)
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-12-08 11:45:21 -05:00
GitHub Action
3de8185506 [ci skip] Translation update 2022-12-08 00:21:50 +00:00
GitHub Action
5f9290e572 [ci skip] Translation update 2022-12-05 00:23:07 +00:00
Allen Porter
6c896adcff
Bump ical to 4.2.1 (#83254) 2022-12-04 23:05:35 +01:00
Allen Porter
6499f5460a
Bump ical to 4.2.0 (#83244) 2022-12-04 10:18:27 -08:00
GitHub Action
a1eab7f842 [ci skip] Translation update 2022-12-04 00:23:06 +00:00