Commit graph

21 commits

Author SHA1 Message Date
G Johansson
266cd623a5
Bump python-holidays to 0.55 (#124314) 2024-08-22 07:59:21 +02:00
G Johansson
7d5ddbf51c
Bump python-holidays to 0.54 (#124170) 2024-08-18 20:05:41 +02:00
G Johansson
62cc868150
Bump python-holidays to 0.53 (#122021) 2024-07-16 13:47:11 +02:00
G Johansson
0cf5b4f965
Bump python-holidays to 0.52 (#121283) 2024-07-05 10:02:52 +02:00
G Johansson
9723b97f4b
Bump python-holidays to 0.51 (#119918) 2024-06-18 22:05:11 +02:00
G Johansson
f2d674d28d
Bump babel to 2.15.0 (#119006) 2024-06-07 10:53:54 +02:00
G Johansson
0d2e441de5
Bump python-holidays to 0.50 (#118965) 2024-06-06 13:34:03 +02:00
G Johansson
008b56b4dd
Bump holidays to 0.49 (#118181) 2024-05-26 20:29:58 +02:00
G Johansson
4037f52d62
Bump python-holidays to 0.48 (#116951)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-06 23:36:47 +02:00
G Johansson
5318a6f465
Bump holidays to 0.47 (#115992) 2024-04-22 21:33:56 +02:00
G Johansson
6638d1c8e8
Bump holidays to 0.46 (#114657) 2024-04-02 20:58:18 +03:00
G Johansson
3c13a28357
Bump holidays to 0.45 (#114069) 2024-03-23 17:24:34 +01:00
G Johansson
f5700aa318
Bump holidays to 0.44 (#112442) 2024-03-05 21:43:58 -05:00
G Johansson
32a6662d1d
Bump holidays to 0.43 (#111039) 2024-02-20 23:37:17 +01:00
G Johansson
4119d20f87
Bump holidays to 0.42 (#109760) 2024-02-05 15:59:02 -05:00
G Johansson
ef49e8a82f
Bump holidays to 0.41 (#108132) 2024-01-16 12:13:41 +01:00
Jan Rieger
058759c76a
Bump python-holidays to 0.40 (#107888) 2024-01-13 17:21:49 +01:00
G Johansson
34c9ef42e9
Add myself as codeowner for holiday (#106560) 2023-12-28 16:32:55 +01:00
G Johansson
0605c499aa
Bump python-holidays to 0.39 (#106550) 2023-12-28 16:05:52 +01:00
Jan Rieger
cedac41407
Bump python-holidays to 0.38 (#105482) 2023-12-11 13:18:23 +01:00
Jan Rieger
244edb488b
Add Holiday integration (#103795)
* Add Holiday integration

* Localize holiday names

* Changes based on review feedback

* Add tests

* Add device info

* Bump holidays to 0.36

* Default to Home Assistant country setting

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/holiday/config_flow.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* black

* Move time

* Stop creating duplicate holiday calendars

* Set default language using python-holiday

* Use common translation

* Set _attr_name to None to fix friendly name

* Fix location

* Update homeassistant/components/holiday/__init__.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update tests/components/holiday/test_init.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* cleanup

* Set up the integration and test the state

* Test that configuring more than one instance is rejected

* Set default_language to user's language, fallback to country's default language

* Improve tests

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Cleanup

* Add next year so we don't run out

* Update tests/components/holiday/test_init.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Cleanup

* Set default language in `__init__`

* Add strict typing

* Change default language: HA's language `en` is `en_US` in holidays, apart from Canada

* CONF_PROVINCE can be None

* Fix test

* Fix default_language

* Refactor tests

* Province can be None

* Add test for translated title

* Address feedback

* Address feedback

* Change test to use service call

* Address feedback

* Apply suggestions from code review

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Changes based on review feedback

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Update homeassistant/components/holiday/calendar.py

Co-authored-by: G Johansson <goran.johansson@shiftit.se>

* Add a test if next event is missing

* Rebase

* Set device to service

* Remove not needed translation key

---------

Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-12-03 16:28:53 +01:00