hass-core/homeassistant
Allen Porter a2c74b9786
Add initial implementation of a calendar trigger (#68674)
* Add initial implementation of calendar trigger

This is an initial implementation of a calendar trigger, that supports
triggering on calendar start time.

See architecture proposal in:
https://github.com/home-assistant/architecture/discussions/700

* Address reviewer feedback

* Use f-strings for all tests

* Apply suggestions from code review

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

* Remove logging f-strings, and move to main code

* Remove mypy ignore

* Apply suggestions from code review

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

* Update calendar triggers to use new calendar data model

* Update tests/components/calendar/test_trigger.py

Co-authored-by: Franck Nijhof <frenck@frenck.nl>

* Rewrite tests using freezegun

Rewrite tests using freezegun and improve edge case handling, and use utc consistently for all alarms.

* Update homeassistant/components/calendar/trigger.py

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

* Update homeassistant/components/calendar/trigger.py

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

* Increase test coverage based on pr feedback

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-04-21 08:09:50 -07:00
..
auth Improve typing [util.decorator] (#67087) 2022-02-23 20:58:42 +01:00
backports Cleanup after pylint update (#68657) 2022-03-26 00:34:12 +01:00
components Add initial implementation of a calendar trigger (#68674) 2022-04-21 08:09:50 -07:00
generated Add Insteon USB discovery (#70306) 2022-04-20 10:07:35 -07:00
helpers Merge stop & error script actions (#70109) 2022-04-20 14:22:37 -07:00
scripts Remove EVENT_TIME_CHANGED and EVENT_TIMER_OUT_OF_SYNC (#69643) 2022-04-09 09:05:54 -10:00
util Switch to using ULIDs for context_ids (#70246) 2022-04-18 22:45:41 -07:00
__init__.py
__main__.py
block_async_io.py Add type ignore error codes [core] (#66773) 2022-02-17 23:09:22 -08:00
bootstrap.py Revert "Block peer certs on supervisor" (#67104) 2022-02-23 12:32:07 +01:00
config.py Adjust "default_config" comment in default config (#68679) 2022-03-28 09:03:34 -07:00
config_entries.py Fix _abort_if_unique_id_configured updates type hint (#68730) 2022-03-29 09:24:15 +02:00
const.py Add for each item support to repeat action (#70093) 2022-04-15 19:10:25 +02:00
core.py Switch to using ULIDs for context_ids (#70246) 2022-04-18 22:45:41 -07:00
data_entry_flow.py Make initial group config flow step a menu (#68565) 2022-03-23 08:34:44 -07:00
exceptions.py Report unmet dependencies for failing config flows (#65061) 2022-02-02 15:06:27 +01:00
loader.py Add integration type (#68349) 2022-03-20 20:38:13 -07:00
package_constraints.txt Bump aiodiscover to 1.4.10 (#70348) 2022-04-21 01:43:27 +02:00
requirements.py
runner.py Add type ignore error codes [core] (#66773) 2022-02-17 23:09:22 -08:00
setup.py Highlight in logs it is a custom component when setup fails (#67559) 2022-03-03 15:03:03 -08:00
strings.json Abort webhook flow when not connected to home assistant cloud (#64963) 2022-01-26 10:57:45 -08:00