hass-core/homeassistant
Jan Rieger 244edb488b
Add Holiday integration ()
* 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
..
auth Switch formatting from black to ruff-format () 2023-11-27 14:38:59 +01:00
backports Update mypy to 1.6.0 () 2023-10-11 13:25:11 +02:00
brands Add Flexit bacnet integration () 2023-11-30 16:50:13 +01:00
components Add Holiday integration () 2023-12-03 16:28:53 +01:00
generated Add Holiday integration () 2023-12-03 16:28:53 +01:00
helpers Improve decorator type annotations [core] () 2023-11-30 18:50:31 +01:00
scripts Fix colors in check_config script () 2023-11-17 13:21:04 -05:00
util Add temperature to the light color mode parameter fallbacks () 2023-12-01 08:26:07 +01:00
__init__.py
__main__.py Make it possible to restart core in safe mode () 2023-10-24 14:47:58 +02:00
block_async_io.py
bootstrap.py Do not notify config errors during logging () 2023-11-24 21:34:09 +01:00
config.py Rename ex to exc as name for exceptions () 2023-11-25 08:30:18 +01:00
config_entries.py Rename ex to exc as name for exceptions () 2023-11-25 08:30:18 +01:00
const.py Bump version to 2024.1.0dev0 () 2023-11-29 21:29:11 +01:00
core.py Remove aiohttp cancel on disconnect workaround () 2023-11-29 11:20:36 -07:00
data_entry_flow.py Validate steps in Flowhandler () 2023-10-19 13:34:10 +02:00
exceptions.py Raise and suppress stack trace when reloading yaml fails () 2023-11-24 17:34:45 +01:00
loader.py Switch formatting from black to ruff-format () 2023-11-27 14:38:59 +01:00
package_constraints.txt Bump zeroconf to 0.128.0 () 2023-12-03 11:51:34 +01:00
requirements.py Update base image to 2023.10.0 () 2023-10-18 19:11:41 +02:00
runner.py Make it possible to restart core in safe mode () 2023-10-24 14:47:58 +02:00
setup.py Raise and suppress stack trace when reloading yaml fails () 2023-11-24 17:34:45 +01:00
strings.json Improve OAuth error handling in configuration flows () 2023-11-11 11:02:51 +01:00