Commit Graph
682 Commits
Author SHA1 Message Date
Erik MontnemeryandGitHub 22c3847c0e Allow inheriting FrozenOrThawed with custom init (#105624) 2023-12-13 10:13:34 +01:00
Erik MontnemeryandGitHub 5bd0833f49 Improve FrozenOrThawed (#105541) 2023-12-12 21:19:41 +01:00
Erik MontnemeryandGitHub d4cf049016 Remove unneeded class _EntityDescriptionBase (#105518) 2023-12-11 23:10:11 +01:00
Erik MontnemeryandGitHub dd338799d4 Make it possible to inherit EntityDescription in frozen and mutable dataclasses (#105211) 2023-12-11 20:00:55 +01:00
885410bcfc Prevent duplicate default SSLContext instances (#105348)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-09 11:30:12 -10:00
af715a4b9a Add workaround for orjson not handling subclasses of str (#105314)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-12-08 18:13:34 +01:00
Erik MontnemeryandGitHub 5b55c7da5f Remove logic converting empty or falsy YAML to empty dict (#103912)
* Correct logic converting empty YAML to empty dict

* Modify according to github comments

* Add load_yaml_dict helper

* Update check_config script

* Update tests
2023-12-05 18:08:11 +01:00
Erik MontnemeryandGitHub 5b59e043fa Don't use deprecated_class decorator on deprecated YAML classes (#105063) 2023-12-05 11:36:26 +01:00
Erik MontnemeryandGitHub ae002e2f38 Remove breaks_in_ha_version from deprecated YAML classes (#105062) 2023-12-05 10:48:31 +01:00
e8475b9b33 Add scaling utils for brightness and fanspeed (#104753)
Co-authored-by: Robert Resch <robert@resch.dev>
2023-12-04 12:10:58 +01:00
Erik MontnemeryandGitHub db51a8e1f7 Allow passing breaks_in_ha_version to deprecation helper decorators (#104985) 2023-12-04 11:52:10 +01:00
J. Nick KostonandGitHub 67039e0f26 Remove monotonic_time_coarse datetime helper (#104892) 2023-12-04 09:10:13 +01:00
0232c8dcb0 Add temperature to the light color mode parameter fallbacks (#86026)
* Add color temperature to the color mode fallbacks

* Manually add ATTR_COLOR_TEMP since ATTR_COLOR_TEMP_KELVIN is pre-parsed

* Include the legacy ATTR_COLOR_TEMP attribute in the tests

* Apply suggestions from code review

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* Add citation for McCamy's approximation formula

If still existing, also see page 3 of https://www.st.com/resource/en/application_note/an5638-how-correlated-color-temperature-is-calculated-by-vd6283-stmicroelectronics.pdf

* Update homeassistant/util/color.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-12-01 08:26:07 +01:00
Erik MontnemeryandGitHub 00e57ab9a4 Use deprecated_class decorator in deprecated YAML loader classes (#104835) 2023-11-30 22:43:34 +01:00
Erik MontnemeryandGitHub abc05451a2 Restore renamed yaml loader classes and warn when used (#104818) 2023-11-30 18:14:48 +01:00
Erik MontnemeryandGitHub 12902b8a68 Add NodeStrClass.__voluptuous_compile__ (#104808) 2023-11-30 17:45:27 +01:00
706add4a57 Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Erik MontnemeryandGitHub 88698d8dfe Fix docstring in yaml util (#104240) 2023-11-20 11:34:14 +01:00
J. Nick KostonandGitHub cc31d77205 Use ulid_now instead of ulid_at_timestamp if no timestamp is passed (#104226)
* Use ulid_now instead of ulid_at_timestamp if no timestamp is passed

ulid_now is slightly faster than ulid_at_timestamp

* tweak usage
2023-11-19 22:27:24 -05:00
Erik MontnemeryandGitHub f89194784d Fix including yaml files with scalar values (#103914) 2023-11-13 15:23:50 +01:00
Erik MontnemeryandGitHub e49f6b41ee Rename YAML loader classes (#103609) 2023-11-08 00:26:54 +01:00
Erik MontnemeryandGitHub c29b0cd05b Correct line numbers in yaml node annotations (#103605) 2023-11-07 23:22:23 +01:00
Erik MontnemeryandGitHub 05deae09fc Add file and line annotation to strings when loading yaml (#103586) 2023-11-07 17:10:15 +01:00
Erik MontnemeryandGitHub dff18b4a16 Rename gather_with_concurrency to gather_with_limited_concurrency (#102241)
* Rename gather_with_concurrency to gather_with_limited_concurrency

* Update test
2023-10-19 15:08:52 +02:00
Franck NijhofandGitHub 664e490cfa Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
J. Nick KostonandGitHub d0ba42283c Use stdlib ip_address method in the network helper when compatible (#102019) 2023-10-15 21:24:49 -04:00
Erik MontnemeryandGitHub e6e190e7e2 Remove unused HideSensitiveDataFilter (#101689) 2023-10-09 12:02:52 +02:00
Erik MontnemeryandGitHub 4e98d39106 Use loader.async_suggest_report_issue in async util (#101516) 2023-10-06 19:57:43 +02:00
mbo18andGitHub b7914582db Update homeassistant color (#101372) 2023-10-05 20:10:27 +02:00
Dave TandGitHub 8626a4888c Remove deprecated temperature conversion functions (#101204) 2023-10-04 06:04:23 +02:00
Dave TandGitHub efca5ba554 Remove deprecated pressure conversion functions (#101347)
Remove deprecated pressure conversion utils
2023-10-04 06:03:32 +02:00
Dave TandGitHub adf6d34d95 Remove deprecated speed conversion functions (#101350) 2023-10-04 06:01:45 +02:00
Dave TandGitHub 8b7fae5200 Remove deprecated distance conversion functions (#101199) 2023-10-01 16:17:31 +02:00
Dave TandGitHub a4a99ce957 Remove deprecated volume conversion functions (#101200) 2023-10-01 16:06:14 +02:00
Joost LekkerkerkerandGitHub 59207be5f8 Add body_exists to MockRequest in aiohttp util (#100932)
* Add body_exists to MockRequest in aiohttp util

* Add body_exists to MockRequest in aiohttp util

* Add body_exists to MockRequest in aiohttp util
2023-09-26 17:52:29 +02:00
Marc MuellerandGitHub 11e8bf0b9c Update types packages (#100850) 2023-09-25 18:53:22 +02:00
Michael HansenandGitHub e69c88a0d2 Use aliases when listing pipeline languages (#99672) 2023-09-08 08:22:08 -04:00
Ville SkyttäandGitHub 6399d74c15 Remove unnnecessary pylint configs from core (#98704) 2023-08-22 23:12:12 +02:00
Ville SkyttäandGitHub 2399cd283a Python 3.10 support cleanups (#98640) 2023-08-21 19:14:07 +02:00
Ville SkyttäandGitHub 3094991236 Upgrade ruff to 0.0.285 (#98647) 2023-08-19 08:17:17 -04:00
Marc MuellerandGitHub 54cbc85c13 Add types-Pillow dependency (#98266) 2023-08-13 11:57:46 -05:00
Marc MuellerandGitHub 1daac46635 Replace deprecated pkg_resources with importlib.metadata (#97628) 2023-08-03 09:14:00 +02:00
Marc MuellerandGitHub ad0873549d Fix ssl DeprecationWarnings (#97623) 2023-08-03 09:11:41 +02:00
Franck NijhofandGitHub 30058297cf Migrate backported StrEnum to built-in StrEnum (#97101) 2023-07-23 23:19:24 +02:00
Marc MuellerandGitHub 77f38e33e5 Import names from typing instead of typing_extensions [3.11] (#97065) 2023-07-22 17:03:44 -05:00
J. Nick KostonandGitHub 99def97ed9 Add cancel messages to core task cancelation (#96972) 2023-07-20 18:03:36 -05:00
Franck NijhofandGitHub 3e85a29b86 Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
4a3f341444 Language codes for Hebrew (#93681)
* Language codes for Hebrew

There is 2 optional code for Hebrew:
he-IL is the new code
iw-IL is the old code , the google cloud STT for example is using the old code (iw)

* Update language.py

* Update test_language.py

* Update test_language.py

* Update test_language.py

* Simplify duplicate language check

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-05-30 22:27:32 -04:00
J. Nick KostonandGitHub 2f1f32f0bb Make unit converter use a factory to avoid looking up the ratios each conversion (#93706) 2023-05-29 20:50:40 +02:00
J. Nick KostonandGitHub 780f9bcdc0 Fix shutdown being delayed for cancelling tasks (#93287) 2023-05-21 14:17:34 +02:00