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
..
2023-11-09 20:46:20 +01:00
2023-11-19 20:44:02 +01:00
2023-11-09 20:46:20 +01:00
2023-11-19 20:44:02 +01:00
2023-11-09 20:46:20 +01:00
2023-11-29 08:43:48 +01:00
2023-11-09 20:46:20 +01:00
2023-11-27 14:38:59 +01:00
2023-11-09 20:46:20 +01:00
2023-11-07 08:50:05 +01:00
2023-10-24 23:39:37 +02:00
2023-11-21 07:59:39 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-26 13:04:52 +01:00
2023-11-29 14:46:19 +01:00
2023-10-26 10:46:20 +02:00
2023-11-29 13:07:52 +01:00
2023-11-30 01:31:27 +01:00
2023-11-16 13:45:18 +01:00
2023-11-09 20:46:20 +01:00
2023-11-09 20:46:20 +01:00
2023-12-02 23:04:37 +01:00
2023-11-24 17:11:54 +01:00
2023-10-25 23:20:50 -04:00
2023-11-09 20:46:20 +01:00
2023-11-09 20:46:20 +01:00
2023-11-27 14:38:59 +01:00
2023-11-26 13:07:21 +01:00
2023-11-06 10:34:06 +01:00
2023-11-12 13:45:30 -05:00
2023-11-30 22:40:41 +01:00
2023-11-29 13:07:52 +01:00
2023-12-02 13:20:06 -10:00
2023-11-29 18:11:04 +01:00
2023-11-29 13:56:51 +01:00
2023-11-12 13:45:30 -05:00
2023-11-27 21:35:13 +01:00
2023-10-24 23:39:47 +02:00
2023-11-29 19:35:36 +01:00
2023-11-19 07:12:43 -08:00
2023-11-12 13:45:30 -05:00
2023-11-27 14:38:59 +01:00
2023-11-25 14:50:44 +01:00
2023-11-12 13:45:30 -05:00
2023-11-06 11:05:44 +01:00
2023-11-26 20:45:45 +01:00
2023-11-13 20:10:15 +01:00
2023-11-27 14:38:59 +01:00
2023-11-04 16:17:31 +01:00
2023-11-29 13:07:52 +01:00
2023-11-17 11:07:08 -06:00
2023-11-12 13:45:30 -05:00
2023-10-24 23:40:22 +02:00
2023-11-12 13:45:30 -05:00
2023-11-12 10:38:32 +01:00
2023-11-24 11:39:13 +01:00
2023-11-29 13:56:51 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 10:38:32 +01:00
2023-11-28 13:56:17 +01:00
2023-10-26 09:46:16 +02:00
2023-10-28 17:16:41 +02:00
2023-11-12 10:38:32 +01:00
2023-11-12 10:38:32 +01:00
2023-11-03 08:34:49 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 10:38:32 +01:00
2023-11-26 17:32:47 +01:00
2023-11-12 10:38:32 +01:00
2023-10-28 14:53:34 +02:00
2023-11-12 10:38:32 +01:00
2023-12-03 11:53:09 +01:00
2023-11-04 18:56:53 +01:00
2023-11-12 10:38:32 +01:00
2023-11-12 10:38:32 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 10:38:32 +01:00
2023-10-25 06:13:10 +02:00
2023-11-27 14:38:59 +01:00
2023-11-06 20:24:01 +01:00
2023-11-27 14:38:59 +01:00
2023-11-15 10:27:50 +01:00
2023-11-12 10:38:32 +01:00
2023-11-12 10:38:32 +01:00
2023-11-27 14:38:59 +01:00
2023-11-29 15:22:21 +01:00
2023-11-30 01:31:27 +01:00
2023-11-27 14:38:59 +01:00
2023-11-29 13:56:51 +01:00
2023-11-21 09:59:34 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-12-02 19:30:04 +01:00
2023-11-12 12:49:49 -08:00
2023-11-30 16:50:13 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-20 15:01:18 +01:00
2023-11-12 13:07:38 +01:00
2023-11-27 14:38:59 +01:00
2023-11-29 13:07:52 +01:00
2023-11-27 13:59:25 +01:00
2023-10-24 23:00:14 +02:00
2023-11-23 10:38:32 +01:00
2023-11-12 13:07:38 +01:00
2023-11-30 08:22:16 +01:00
2023-11-29 16:13:54 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-06 01:15:49 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:07:38 +01:00
2023-11-12 13:44:26 -05:00
2023-11-30 16:59:26 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 13:07:38 +01:00
2023-11-29 22:37:43 +01:00
2023-11-06 15:26:00 -05:00
2023-11-12 13:07:38 +01:00
2023-10-30 22:10:47 +01:00
2023-11-29 13:07:52 +01:00
2023-11-27 14:38:59 +01:00
2023-11-24 11:54:43 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 13:52:32 -05:00
2023-11-12 13:52:32 -05:00
2023-12-03 16:28:53 +01:00
2023-11-25 20:14:48 +01:00
2023-11-29 11:30:15 +01:00
2023-11-29 11:30:15 +01:00
2023-11-29 11:30:15 +01:00
2023-11-27 14:38:59 +01:00
2023-11-12 13:52:32 -05:00
2023-11-27 14:38:59 +01:00
2023-11-30 19:58:33 +01:00
2023-11-12 13:52:32 -05:00
2023-11-29 10:40:19 -07:00
2023-11-27 18:03:29 +01:00
2023-11-12 13:52:32 -05:00
2023-10-29 09:17:57 +01:00
2023-10-24 23:39:14 +02:00
2023-11-16 00:59:37 +01:00
2023-11-12 13:52:32 -05:00
2023-11-27 14:38:59 +01:00
2023-11-13 11:51:55 +01:00
2023-11-20 08:07:29 +01:00
2023-11-19 20:15:02 +01:00
2023-10-24 19:14:23 -05:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-29 13:07:52 +01:00
2023-11-13 11:51:55 +01:00
2023-11-27 14:38:59 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-19 20:44:02 +01:00
2023-11-13 11:51:55 +01:00
2023-11-27 14:38:59 +01:00
2023-11-25 14:05:08 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 11:51:55 +01:00
2023-11-13 20:02:33 +01:00
2023-11-27 14:38:59 +01:00
2023-11-29 14:24:09 +01:00
2023-11-13 20:02:33 +01:00
2023-11-13 20:02:33 +01:00
2023-12-02 19:30:04 +01:00
2023-11-04 19:24:34 +01:00
2023-11-13 20:02:33 +01:00
2023-11-13 20:02:33 +01:00
2023-11-13 20:02:33 +01:00
2023-12-01 08:26:07 +01:00
2023-11-27 14:38:59 +01:00
2023-11-13 20:02:33 +01:00
2023-11-13 20:02:33 +01:00
2023-11-12 00:14:08 +01:00
2023-11-29 13:11:15 +01:00
2023-11-20 22:38:16 +01:00
2023-11-27 14:38:59 +01:00
2023-10-27 11:30:37 +02:00
2023-11-13 20:02:33 +01:00
2023-11-27 14:38:59 +01:00
2023-11-06 15:26:00 -05:00
2023-11-30 20:08:58 +01:00
2023-11-15 10:33:11 +01:00
2023-10-24 23:35:34 +02:00
2023-12-02 23:07:06 +01:00
2023-11-15 10:33:11 +01:00
2023-11-19 20:44:02 +01:00
2023-11-19 20:44:02 +01:00
2023-11-06 15:26:00 -05:00
2023-11-15 10:33:11 +01:00
2023-11-27 14:38:59 +01:00
2023-11-15 10:33:11 +01:00
2023-11-15 10:33:11 +01:00
2023-11-15 10:33:11 +01:00
2023-11-26 17:49:51 +01:00
2023-11-15 10:33:11 +01:00
2023-11-15 10:33:11 +01:00
2023-11-15 10:33:11 +01:00
2023-11-15 10:33:11 +01:00
2023-11-29 16:42:10 +01:00
2023-11-15 10:33:11 +01:00
2023-11-07 14:11:54 +01:00
2023-11-27 14:38:59 +01:00
2023-11-04 16:41:59 +01:00
2023-11-15 10:33:11 +01:00
2023-11-11 11:02:51 +01:00
2023-11-27 14:38:59 +01:00
2023-11-04 08:56:27 +01:00
2023-11-08 12:40:28 +01:00
2023-10-24 23:26:12 +02:00
2023-11-09 19:01:07 +01:00
2023-11-19 20:44:02 +01:00
2023-11-27 14:38:59 +01:00
2023-11-07 22:54:56 +01:00
2023-11-24 13:14:44 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-26 17:38:47 +01:00
2023-11-22 16:53:17 +01:00
2023-11-23 07:53:50 +01:00
2023-11-29 09:08:27 +01:00
2023-11-24 10:40:59 +01:00
2023-11-24 17:11:54 +01:00
2023-11-29 21:54:05 +01:00
2023-11-29 18:35:55 +01:00
2023-11-29 08:42:02 +01:00
2023-11-27 14:38:59 +01:00
2023-11-26 13:08:10 +01:00
2023-11-20 19:53:25 +01:00
2023-10-29 10:43:57 +01:00
2023-11-08 01:09:44 +01:00
2023-11-23 08:35:30 +01:00
2023-11-27 14:38:59 +01:00
2023-11-04 17:59:12 +01:00
2023-11-30 06:11:38 +01:00
2023-11-27 14:38:59 +01:00
2023-10-25 13:01:27 +02:00
2023-11-06 23:31:54 +01:00
2023-11-27 14:38:59 +01:00
2023-11-30 17:09:06 +01:00
2023-11-30 01:50:37 +01:00
2023-11-17 23:01:00 +01:00
2023-12-02 19:30:04 +01:00
2023-11-16 14:36:15 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-16 08:47:13 +01:00
2023-10-25 16:09:39 +02:00
2023-10-25 06:13:00 +02:00
2023-11-27 14:38:59 +01:00
2023-10-24 23:37:36 +02:00
2023-11-30 17:26:07 +01:00
2023-11-28 08:27:51 +01:00
2023-11-27 14:38:59 +01:00
2023-11-22 18:56:50 +01:00
2023-11-27 14:38:59 +01:00
2023-11-22 20:00:28 +01:00
2023-11-06 04:11:50 +01:00
2023-11-19 20:44:02 +01:00
2023-11-23 13:51:51 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-10-24 23:43:30 +02:00
2023-11-27 14:38:59 +01:00
2023-10-24 23:46:00 -05:00
2023-11-27 14:38:59 +01:00
2023-11-29 13:07:52 +01:00
2023-11-06 11:12:33 +01:00
2023-11-29 13:56:51 +01:00
2023-10-25 06:11:06 +02:00
2023-11-10 07:25:25 -06:00
2023-11-29 13:11:15 +01:00
2023-11-30 07:01:57 +01:00
2023-11-19 23:49:40 +01:00
2023-11-19 20:44:02 +01:00
2023-11-09 01:13:11 +01:00
2023-11-03 17:44:48 +01:00
2023-11-06 15:45:04 +01:00
2023-11-29 13:35:32 +01:00
2023-11-19 10:41:48 +01:00
2023-11-15 13:15:31 +01:00
2023-11-30 15:41:58 +01:00
2023-11-06 15:26:00 -05:00
2023-11-24 11:18:55 +01:00
2023-10-24 22:42:44 +02:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-10-30 09:46:20 +01:00
2023-11-12 12:04:10 +01:00
2023-10-24 23:38:35 +02:00
2023-11-29 13:56:51 +01:00
2023-11-13 13:57:29 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-06 15:26:00 -05:00
2023-11-30 01:31:27 +01:00
2023-11-26 20:40:27 +01:00
2023-11-27 14:38:59 +01:00
2023-10-24 23:25:14 +02:00
2023-11-27 14:38:59 +01:00
2023-11-19 20:44:02 +01:00
2023-11-19 20:44:02 +01:00
2023-11-29 13:07:52 +01:00
2023-10-24 22:44:50 +02:00
2023-11-27 14:38:59 +01:00
2023-11-25 10:44:15 +01:00
2023-11-27 14:38:59 +01:00
2023-11-27 14:38:59 +01:00
2023-11-06 15:26:00 -05:00
2023-11-27 14:38:59 +01:00
2023-11-29 13:56:51 +01:00
2023-11-29 13:56:51 +01:00
2023-12-01 07:14:13 +01:00