Commit graph

26 commits

Author SHA1 Message Date
G Johansson
34df767762
Fix blocking call in holiday (#118496) 2024-05-30 19:11:19 +02:00
G Johansson
008b56b4dd
Bump holidays to 0.49 (#118181) 2024-05-26 20:29:58 +02:00
G Johansson
b9d26c097f
Holiday update calendar once per day (#116421) 2024-05-07 18:52:51 +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
J. Nick Koston
9d7e20f9ca
Fix deadlock in holidays dynamic loading (#115385) 2024-04-10 23:38:34 +02:00
G Johansson
6638d1c8e8
Bump holidays to 0.46 (#114657) 2024-04-02 20:58:18 +03:00
G Johansson
d4f158d079
Add reconfigure step to holiday (#114057) 2024-03-23 22:55:05 +01:00
G Johansson
3c13a28357
Bump holidays to 0.45 (#114069) 2024-03-23 17:24:34 +01:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
G Johansson
f5700aa318
Bump holidays to 0.44 (#112442) 2024-03-05 21:43:58 -05:00
Erik Montnemery
e06446d0fa
Migrate integrations e-h to generic flowhandler (#111862) 2024-02-29 20:07:36 +01: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
Jan Rieger
9a81a29ce2
Let babel handle the locale separator in holiday (#107571) 2024-01-08 22:59:12 +01:00
G Johansson
d8c139f211
Fix language flavors in holiday (#107392) 2024-01-08 09:31:44 +01:00
steffenrapp
608d52f167
Add translatable title to holiday (#106825) 2024-01-02 23:40:38 +01:00
G Johansson
648afe121d
Replace dash in language if needed (#106559)
* Replace dash in language if needed

* Add tests
2023-12-28 20:16:14 +01:00
G Johansson
34c9ef42e9
Add myself as codeowner for holiday (#106560) 2023-12-28 16:32:55 +01:00
G Johansson
b852eb7e23
Fix holiday HA language not supported (#106554) 2023-12-28 16:10:27 +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
81d05acd07
Address late review for Holiday (#105121) 2023-12-06 12:39:46 +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