Erik Montnemery
95f7db1970
Move config_per_platform and extract_domain_configs to config.py ( #104989 )
2023-12-04 12:48:49 +01:00
Erik Montnemery
db51a8e1f7
Allow passing breaks_in_ha_version to deprecation helper decorators ( #104985 )
2023-12-04 11:52:10 +01:00
Erik Montnemery
34d01719f2
Minor improvements of deprecation helper ( #104980 )
2023-12-04 10:47:49 +01:00
Marc Mueller
2496c275c8
Improve decorator type annotations [core] ( #104826 )
2023-11-30 18:50:31 +01:00
J. Nick Koston
1522118453
Remove aiohttp cancel on disconnect workaround ( #104175 )
2023-11-29 11:20:36 -07:00
Paul Bottein
38eda9f46e
Add multiple option to text selector ( #104635 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-11-29 18:32:32 +01:00
J. Nick Koston
dfed10420c
Remove aiohttp enable_compression helper ( #104174 )
2023-11-29 10:24:34 -07:00
J. Nick Koston
608f4f7c52
Bump aiohttp to 3.9.1 ( #104176 )
2023-11-29 16:13:54 +01:00
schelv
31cab5803c
Add Option For Kelvin Unit To Color Temperature Selector ( #103799 )
2023-11-29 12:25:06 +01:00
Aarni Koskela
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
Jan Bouwhuis
af71c2bb45
Raise and suppress stack trace when reloading yaml fails ( #102410 )
...
* Allow async_integration_yaml_config to raise
* Docstr - split check
* Implement as wrapper, return dataclass
* Fix setup error handling
* Fix reload test mock
* Move log_messages to error handler
* Remove unreachable code
* Remove config test helper
* Refactor and ensure notifications during setup
* Remove redundat error, adjust tests notifications
* Fix patch
* Apply suggestions from code review
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Follow up comments
* Add call_back decorator
* Split long lines
* Update exception abbreviations
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-11-24 17:34:45 +01:00
Robert Resch
852fb58ca8
Extend `auth/providers` endpoint and add `/api/person/list` endpoint for local ip requests ( #103906 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-11-24 17:11:54 +01:00
Erik Montnemery
6f41243410
Change confusing parameter naming in reload helper ( #104257 )
2023-11-21 08:25:46 +01:00
Erik Montnemery
afea9f7739
Don't mutate config in the check_config helper ( #104241 )
2023-11-20 12:55:27 +01:00
Erik Montnemery
a78764f000
Improve formatting of package errors ( #104078 )
2023-11-17 14:57:37 +01:00
Erik Montnemery
b400b33b0d
Refer to domain configuration in custom validator errors ( #104065 )
2023-11-16 15:28:48 +01:00
Erik Montnemery
d8a49b14e5
Use relative paths in configuration validation error messages ( #104064 )
2023-11-16 10:56:47 +01:00
Erik Montnemery
98030a9ce1
Improve formatting of package errors ( #103976 )
2023-11-16 09:08:47 +01:00
Erik Montnemery
1c817cc18c
Attach relevant config to check_config errors ( #104048 )
2023-11-16 07:25:52 +01:00
Erik Montnemery
5b37096b5f
Refactor config.async_log_exception ( #104034 )
...
* Refactor config.async_log_exception
* Improve test coverage
* Make functions public
2023-11-15 19:09:49 +01:00
J. Nick Koston
54c98f32c2
Bump aiohttp to 3.9.0rc0 for python 3.12 only ( #103507 )
...
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2023-11-15 01:02:14 +01:00
Ruslan Sayfutdinov
1a3475ea60
Fix typing for entity_platform.async_register_entity_service ( #103777 )
2023-11-13 20:00:09 +01:00
Erik Montnemery
51b599e1f6
Deduplicate some code in `helpers.check_config.async_check_ha_config_file` ( #103852 )
...
Tweak helpers.check_config.async_check_ha_config_file
2023-11-12 19:15:01 +01:00
Ruslan Sayfutdinov
adcd4e59cf
More useful message on services.yaml parse error ( #103847 )
2023-11-12 16:18:12 +00:00
Marc Mueller
a70ec64408
Update mypy to 1.7.0 ( #103800 )
2023-11-11 23:31:04 +01:00
Marc Mueller
66d1a7f1dd
Update ReadOnlyEntityOptions typing ( #103813 )
2023-11-11 22:30:55 +01:00
Marc Mueller
c35f56ea77
Handle BaseException from asyncio gather ( #103814 )
2023-11-11 22:26:37 +01:00
Allen Porter
787fb3b954
Improve OAuth error handling in configuration flows ( #103157 )
...
* Improve OAuth error handling in configuration flows
* Update strings for all integrations that use oauth2 config flow
* Remove invalid_auth strings
* Revert change to release
* Revert close change in aiohttp mock
2023-11-11 11:02:51 +01:00
Erik Montnemery
123f14dd6c
Attach correct platform config in check_config warnings and errors ( #103633 )
2023-11-09 00:06:04 +01:00
Erik Montnemery
d913508607
Allow removing an entity more than once ( #102904 )
2023-11-08 12:50:40 +01:00
Erik Montnemery
cc5eda76d3
Humanize core config errors in check_config helper ( #103635 )
2023-11-08 10:15:27 +01:00
J. Nick Koston
0d63e2f9b5
Ensure large payloads are compressed in the executor with aiohttp 3.9.0 ( #103592 )
2023-11-07 12:37:54 -06:00
Erik Montnemery
3ba8a82243
Differentiate between warnings and errors in check_config helper ( #102902 )
...
* Differentiate between warnings and errors in check_config helper
* Update tests
* Treat configuration errors in frontend and its dependencies as errors
* Improve test coverage
* Address review comments
* Improve test coverage
* Improve test coverage
* Address review comments
* Add comment
2023-11-05 03:08:04 +01:00
J. Nick Koston
68471b6da5
Reduce template render overhead ( #103343 )
...
The contextmanager decorator creates a new context manager every
time its run, but since we only have a single context var, we can
use the same one every time. Creating the contextmanager was roughly
20% of the time time of the template render
I was a bit suprised to find it creates a new context manager
object every time https://stackoverflow.com/questions/34872535/why-contextmanager-is-slow
2023-11-04 09:46:01 +01:00
Erik Montnemery
0ea0a1ed06
Prevent accidentally reusing an entity object ( #102911 )
...
* Prevent accidentally reusing an entity object
* Fix group reload service
* Revert "Fix group reload service"
* Improve test
* Add tests aserting entity can't be reused
2023-11-03 21:01:38 +01:00
Paul Bottein
89a9e6c6e8
Add trigger selector for blueprint ( #103050 )
2023-11-03 09:11:49 +01:00
Erik Montnemery
a63c420890
Quote entity ids in entity excpetions ( #103286 )
2023-11-03 06:04:07 +01:00
Kevin Stillhammer
06c9719cd6
Support multiple responses for service calls ( #96370 )
...
* add supports_response to platform entity services
* support multiple entities in entity_service_call
* support legacy response format for service calls
* revert changes to script/shell_command
* add back test for multiple responses for legacy service
* remove SupportsResponse.ONLY_LEGACY
* Apply suggestion
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* test for entity_id remove None
* revert Apply suggestion
* return EntityServiceResponse from _handle_entity_call
* Use asyncio.gather
* EntityServiceResponse not Optional
* styling
---------
Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-11-02 18:37:35 -07:00
J. Nick Koston
b3743937de
Avoid looking up the callable type for HassJob when we already know it ( #102962 )
...
* Avoid looking up the callable type for HassJob when we already know it
When we connect the frontend we call async_listen with run_immediately MANY
times when we already know the job type (it will always be a callback). This
reduces the latency to get the frontend going
* missing coverage
2023-10-30 12:45:22 +01:00
J. Nick Koston
009dc91b97
Fix inner callback decorators with partials ( #102873 )
2023-10-28 08:38:42 -05:00
Erik Montnemery
a7183a0cbf
Allow missing components in safe mode ( #102891 )
2023-10-27 13:26:26 +02:00
Erik Montnemery
294f565bad
Allow missing components in safe mode ( #102888 )
2023-10-27 12:25:27 +02:00
Erik Montnemery
9ea97fd8d2
Improve docstrings for time related event helpers ( #102839 )
...
* Improve docstrings for time related event helpers
* Fix grammar
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-10-26 14:00:44 +02:00
Raman Gupta
35d18a9a3e
Add tests for types and functions for type conversions in templates ( #100807 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-25 13:20:34 +02:00
J. Nick Koston
f91583a0fc
Add support for family to aiohttp session helper ( #102702 )
2023-10-24 18:40:39 -05:00
Allen Porter
5d430f53cd
Add todo component ( #100019 )
2023-10-23 22:53:00 +02:00
Erik Montnemery
c481fdb7d0
Rename safe mode to recovery mode ( #102580 )
2023-10-23 20:33:08 +02:00
Erik Montnemery
1621310ba7
Add serial_number to device registry entries ( #102334 )
...
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-22 15:14:44 +02:00
Erik Montnemery
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
J. Nick Koston
e2e9c84c88
Cache construction of battery icon ( #102194 )
...
This was being built every time state was written. When
a robo vac is operating it writes state often which mean building
the icon string over and over again when it rarely changes.
2023-10-18 07:35:39 +02:00