Paulus Schoutsen
427c437a68
Add start_conversation service to Assist Satellite ( #134921 )
...
* Add start_conversation service to Assist Satellite
* Fix tests
* Implement start_conversation in voip
* Update homeassistant/components/assist_satellite/entity.py
---------
Co-authored-by: Michael Hansen <mike@rhasspy.org>
2025-01-29 21:32:10 -05:00
Tomer
3118831557
Ease understanding of integration failures ( #134475 )
...
Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: David Bonnes <zxdavb@bonnes.me>
2025-01-29 17:43:25 +01:00
epenet
b7a344fd65
Standardize homeassistant imports in core and base platforms ( #136730 )
...
Standardize homeassistant imports in core
2025-01-28 13:11:48 -05:00
epenet
a05ac6255c
Standardize util imports ( #136723 )
2025-01-28 15:54:06 +01:00
Denis Shulyaka
85540cea3f
Add LLM ActionTool ( #136591 )
...
Add ActionTool
2025-01-27 14:21:27 -05:00
Michael Hansen
7497beefed
Add single target constraint to async_match_targets ( #136643 )
...
Add single target constraint
2025-01-27 14:06:21 -05:00
Paulus Schoutsen
005ae3ace6
Allow LLMs to get calendar events from exposed calendars ( #136304 )
2025-01-23 17:54:04 -05:00
epenet
3bbd7daa7f
Improve type hints in template helper ( #136253 )
2025-01-22 15:27:01 +00:00
epenet
b11b36b523
Add more util aliases to import conventions ( #136153 )
2025-01-21 15:58:23 +01:00
Ville Skyttä
40eb8b91cc
Adjust to recommended propcache.api import paths ( #136150 )
2025-01-21 10:58:22 +01:00
Sid
83b0d5a0b9
Enable Ruff B024 ( #136088 )
2025-01-20 19:14:50 +02:00
Marc Mueller
af02dbf0cb
Update pylint to 3.3.3 and astroid to 3.3.8 ( #136090 )
2025-01-20 06:52:18 -10:00
Artur Pragacz
877e44e3c9
Remove redundant device update code ( #134100 )
...
Remove redundant device update steps
2025-01-20 09:37:32 +01:00
Paulus Schoutsen
754de6f998
Add shared history for conversation agents ( #135903 )
...
* Add shared history for conversation agents
* Remove unused code
* Add support for native history items
* Store all assistant responses as assistant in history
* Add history support to DefaultAgent.async_handle_intents
* Make local fallback work
* Add default agent history
* Add history cleanup
* Add tests
* ChatHistory -> ChatSession
* Address comments
* Update snapshots
2025-01-18 22:33:03 -05:00
Marc Mueller
abc256fb3e
Add overload for async singleton call with HassKey ( #134059 )
2025-01-17 19:22:48 +01:00
Erik Montnemery
235fda55fe
Validate config entry when adding or updating entity registry entry ( #135067 )
2025-01-17 19:18:13 +01:00
Joost Lekkerkerker
ef8b8fbbaa
Enable RUF023 ( #135830 )
2025-01-17 12:28:27 +01:00
Joost Lekkerkerker
b4f4b06f29
Enable RUF021 ( #135832 )
2025-01-17 10:20:45 +01:00
Marc Mueller
46b17b539c
Use new syntax for TypeVar defaults ( #135780 )
2025-01-17 09:12:52 +01:00
Petro31
566f514a75
Allow is_state_attr to check attributes for None ( #132879 )
2025-01-17 08:41:10 +01:00
Konrad Vité
e6c696933f
Fix DiscoveryFlowHandler when discovery_function returns bool ( #133563 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2025-01-16 12:31:16 -10:00
Paulus Schoutsen
762bc7b8d1
Add broadcast intent ( #135337 )
2025-01-16 14:41:53 -06:00
Paulus Schoutsen
5cf56207fe
Add temperature and humidity entities to area registry ( #135423 )
...
* Add temperature and humidity entities to area registry
* Fix service test
* Add validation
* ABC
* More ABC
* More ABC 2
* Fix tests
* ABC 3
* ABC 4
2025-01-16 08:25:26 -05:00
epenet
e83ee00af8
Move UsbServiceInfo to service_info helpers ( #135663 )
...
* Move UsbServiceInfo to service_info helpers
* Adjust components
2025-01-15 15:10:25 +01:00
epenet
8c13daf6d9
Move SsdpServiceInfo to service_info helpers ( #135661 )
...
* Move SsdpServiceInfo to service_info helpers
* docstring
* Move string constants
* Adjust components
2025-01-15 15:00:27 +02:00
epenet
31c36beb2e
Move DhcpServiceInfo to service_info helpers ( #135658 )
...
* Move DhcpServiceInfo to service_info helpers
* Fix mypy/pylint
2025-01-15 13:09:18 +01:00
epenet
b046ca9abe
Move ZeroconfServiceInfo to service_info helpers ( #135653 )
...
* Move ZeroconfServiceInfo to service_info helpers
* Adjust deprecation date
* Fix mypy/pylint
* Fix DeprecatedConstant
* Add deprecation test
* Adjust
* Also deprecate ATTR_PROPERTIES_ID
2025-01-15 12:25:42 +01:00
Joost Lekkerkerker
8a35261fd8
Remove unused noqas ( #135583 )
2025-01-15 10:02:18 +01:00
Marc Mueller
239aa94b6f
Update Python version for mypy to 3.13 ( #135636 )
2025-01-15 01:43:13 +01:00
Franck Nijhof
60bdc13c94
Drop Python 3.12 support ( #135589 )
2025-01-14 16:23:15 +01:00
Joost Lekkerkerker
8db63adc11
Bump ruff to 0.9.1 ( #135197 )
2025-01-14 11:46:12 +01:00
Artur Pragacz
1de4d0efda
Fix deprecated enums ( #134824 )
2025-01-14 10:04:48 +01:00
Artur Pragacz
b009f11013
Fix referenced objects in script sequences ( #135499 )
2025-01-13 11:40:53 +01:00
epenet
5df7092f41
Improve formatting in core files ( #135256 )
...
* Adjust core files formatting
* Adjust translations script
2025-01-10 09:08:37 +01:00
Allen Porter
6e111d18ec
Allow unregistering LLM APIs ( #135162 )
2025-01-09 08:18:25 -08:00
Erik Montnemery
5888b83f22
Validate device id when adding or updating entity registry entry ( #134982 )
2025-01-07 16:10:51 +00:00
Franck Nijhof
00c052bb22
Revert "Remove deprecated supported features warning in ..." (multiple) ( #134933 )
2025-01-07 00:08:02 +01:00
J. Nick Koston
89c73f56b1
Migrate to using aiohttp-asyncmdnsresolver for aiohttp resolver ( #134830 )
2025-01-06 12:06:28 -10:00
Michael
acd95975e4
Make ChunkAsyncStreamIterator an aiohttp helper ( #134843 )
...
make ChunkAsyncStreamIterator a generic aiohttp helper
2025-01-06 04:37:07 +01:00
Craig Andrews
9e8df72c0d
Improve is docker env checks ( #132404 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Sander Hoentjen <sander@hoentjen.eu>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
Co-authored-by: Robert Resch <robert@resch.dev>
2025-01-02 17:21:49 +01:00
Marc Mueller
2599faa622
Fix method subtyping [helpers] ( #134213 )
2024-12-29 17:16:38 +01:00
J. Nick Koston
7cfbc3eeae
Fix duplicate call to async_register_preload_platform ( #133909 )
2024-12-23 09:20:44 -10:00
Erik Montnemery
ecb3bf79f3
Revert "Add support for subentries to config entries" ( #133470 )
...
Revert "Add support for subentries to config entries (#117355 )"
This reverts commit ad15786115
.
2024-12-18 13:51:05 +01:00
Erik Montnemery
ad15786115
Add support for subentries to config entries ( #117355 )
...
* Add support for subentries to config entries
* Improve error handling and test coverage
* Include subentry_id in subentry containers
* Auto-generate subentry_id and add optional unique_id
* Tweak
* Update tests
* Fix stale docstring
* Address review comments
* Typing tweaks
* Add methods to ConfigEntries to add and remove subentry
* Improve ConfigSubentryData typed dict
* Update test snapshots
* Adjust tests
* Fix unique_id logic
* Allow multiple subentries with None unique_id
* Add number of subentries to config entry JSON representation
* Add subentry translation support
* Allow integrations to implement multiple subentry flows
* Update translations schema
* Adjust exception text
* Change subentry flow init step to user
* Prevent creating a subentry with colliding unique_id
* Update tests
* Address review comments
* Remove duplicaetd unique_id collision check
* Remove change from the future
* Improve test coverage
* Add default value for unique_id
2024-12-12 20:16:18 +01:00
Marc Mueller
5c6e4ad191
Use PEP 695 TypeVar syntax ( #133049 )
2024-12-12 16:01:57 +01:00
Marc Mueller
dc8b7cfede
Allow bytearray for mqtt payload type ( #132906 )
2024-12-11 11:51:16 +01:00
epenet
f2500e5a32
Remove deprecated supported features warning in MediaPlayer ( #132365 )
2024-12-09 23:03:55 +01:00
Allen Porter
35438f65e5
Update exception handling for python3.13 for getpass.getuser() ( #132449 )
...
* Update exception handling for python3.13 for getpass.getuser()
* Add comment
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Cleanup trailing space
---------
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-12-06 06:54:21 -08:00
Abílio Costa
208b14dd2b
Use translations on NumberEntity unit_of_measurement property ( #132095 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-12-03 17:08:09 +01:00
Marc Mueller
fe0f414e99
Update mypy-dev to 1.14.0a5 ( #132063 )
2024-12-02 14:40:13 +01:00
Jan Bouwhuis
3aae9b629f
Add exception translation for entity action not supported ( #131956 )
2024-12-01 16:53:06 +01:00
Robert Resch
fd14add67b
Remove deprecated device registry constants ( #131802 )
2024-11-28 11:20:44 +01:00
Jan Bouwhuis
d26c7a0536
Log warning if via_device reference not exists when creating or updating a device registry entry ( #131746 )
2024-11-28 08:27:24 +01:00
Paulus Schoutsen
ae34a6b375
Do not double expose scripts in LLM tools ( #131726 )
2024-11-27 18:04:08 +01:00
Abílio Costa
d8dd6a99b3
Use default translation on SensorEntity unit_of_measurement ( #131633 )
...
* Use translations on SensorEntity unit_of_measurement property
* Use default language for unit translation
* Update brother integration snapshot
* Update snapshots
2024-11-27 14:45:53 +01:00
Franck Nijhof
56b4733e4a
Clean up early assignment in script response ( #131691 )
2024-11-27 10:24:06 +01:00
Petro31
33222436d2
Nested stop actions will now return response_variables ( #126393 )
...
fix-nested-stop-variable-response
2024-11-27 09:18:02 +01:00
Paulus Schoutsen
7e03100af2
Allow an LLM to see script response values ( #131683 )
2024-11-26 23:51:21 -06:00
Jan-Philipp Benecke
1a71fbe427
Add intent to cancel all timers ( #130873 )
...
* Add intent to cancel all timers
* Add intent to llm test
2024-11-26 09:59:41 -06:00
Simon Lamon
ee74a35417
Support time entities in time conditions ( #124575 )
...
Co-authored-by: Mark Bergsma <mark@wikked.net>
2024-11-26 15:37:31 +01:00
epenet
c7485b94d5
Use breaks_in_ha_version in report_usage ( #131137 )
...
* Use breaks_in_ha_version in report_usage
* Revert behavior change
2024-11-23 18:58:24 +01:00
Josef Zweck
e2183a81aa
Make UpdateFailed translateable ( #131098 )
2024-11-22 09:37:35 +01:00
G Johansson
797eb606fe
Fix correct handling in ManualTriggerEntity ( #130135 )
2024-11-21 20:46:03 +01:00
epenet
9add3a6c9b
Add ability to pass integration domain to report_usage ( #130705 )
...
* Add ability to pass integration domain to report_usage
* Adjust
* Fix
* Add tests
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Finish tests
* Docstring
* Replace logger warning with report_usage
* Improve
* docstring
* Improve tests
* Adjust docstring for exclude_integrations
* Fix behavior and improve tests
2024-11-21 16:01:36 +01:00
epenet
deeb55ac50
Add ability to set HA breaking version in report_usage ( #130858 )
...
* Add ability to set breaking version in report_usage
* Adjust tests
* Adjust test
* Adjust tests
* Rename breaks_in_version => breaks_in_ha_version
2024-11-20 21:41:57 +01:00
epenet
600f83ddab
Finish migration from report to report_usage ( #130412 )
2024-11-15 12:35:50 +01:00
epenet
b57b22f6e3
Drop restore_state backwards compatibility ( #130411 )
2024-11-15 12:35:09 +01:00
epenet
b24931c775
Remove checks for DeviceEntryDisabler and DeviceEntryType enum ( #130367 )
2024-11-15 12:33:47 +01:00
epenet
7045b776b6
Use report_usage in helpers ( #130365 )
2024-11-12 09:25:13 +01:00
epenet
a3b0909e3f
Add new frame helper to better distinguish custom and core integrations ( #130025 )
...
* Add new frame helper to clarify options available
* Adjust
* Improve
* Use report_usage in core
* Add tests
* Use is/is not
Co-authored-by: J. Nick Koston <nick@koston.org>
* Use enum.auto()
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-11-07 18:23:35 +01:00
epenet
03d5b18974
Remove options property from OptionFlow ( #129890 )
...
* Remove options property from OptionFlow
* Update test_config_entries.py
* Partial revert of "Remove deprecated property setters in option flows (#129773 )"
* Partial revert "Use new helper properties in crownstone options flow (#129774 )"
* Restore onewire init
* Restore onvif
* Restore roborock
* Use deepcopy in onewire
* Restore steam_online
* Restore initial options property in OptionsFlowWithConfigEntry
* re-add options property in SchemaOptionsFlowHandler
* Restore test
* Cleanup
2024-11-06 23:28:01 +01:00
epenet
79901cede9
Drop initialize_options helper from OptionsFlow ( #129870 )
2024-11-05 12:02:33 +01:00
epenet
d180ff417d
Cleanup deprecated OptionsFlowWithConfigEntry (part 3) ( #129756 )
2024-11-04 18:55:01 +01:00
Michael Hansen
c2ef119e50
Add HassRespond intent ( #129755 )
...
* Add HassHello intent
* Rename to HassRespond
* LLM's ignore HassRespond intent
2024-11-03 16:38:52 -06:00
J. Nick Koston
dfbb763031
Disable cleanup_closed on python 3.12.7+ and 3.13.1+ ( #129645 )
2024-11-02 22:15:56 -05:00
Robert Resch
380974eed4
Remove hassio from ALLOWED_USED_COMPONENTS and move some functions to helper ( #127228 )
...
* Remove hassio from ALLOWED_USED_COMPONENTS
* Move HassioServiceInfo to helpers.service_info
* Deprecate moved functions
* Add note about deprecation
* Fix tests
* Implement suggestion
* Typo
* Update pyproject.toml
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-10-30 12:43:41 +01:00
Erik Montnemery
2236ca3e12
Fix typo in cv.url_no_path ( #129402 )
2024-10-29 12:06:59 +01:00
G Johansson
d727f8ff50
Clarify event tracking in docstrings for track_state_change/report ( #129338 )
...
* Clarify event tracking in docstrings for track_state_change/report
* Fixes
* Update homeassistant/helpers/event.py
* Update homeassistant/helpers/event.py
Co-authored-by: J. Nick Koston <nick@koston.org>
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-10-28 23:05:06 +01:00
Erik Montnemery
4b56701152
Move core config class to core_config.py ( #129163 )
2024-10-26 07:00:31 +02:00
Artur Pragacz
624834de9c
Fix service target devices by label ( #127229 )
...
* Fix service target devices by label
* More explicit test
2024-10-25 21:30:04 +02:00
tronikos
267e1dd0f8
Partially revert "LLM Tool parameters check ( #123621 )" ( #129064 )
2024-10-25 11:23:34 +02:00
Erik Montnemery
3e62c6ae2f
Move core config functionality to its own module ( #129065 )
...
* Move core config functionality to its own module
* Adjust test
2024-10-24 13:34:51 +02:00
Jonas Bergler
756a866ffd
Add `completed` to the wait variable when using triggers (`wait_for_trigger`) ( #123427 )
...
* Add support for the wait.completed variable when using wait with triggers
* Remove junk comment
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-10-23 17:19:07 +02:00
Denis Shulyaka
e0e61b5262
Expose scripts with no fields as entities ( #123061 )
2024-10-22 23:14:07 -07:00
epenet
f8e6fb81d6
Improve template docstring ( #128967 )
2024-10-22 19:15:27 -10:00
Erik Montnemery
0d447c9d50
Improve entity cached attributes ( #128876 )
2024-10-21 10:29:01 +02:00
epenet
e5a07da0c9
Add checks for config entry state in async_config_entry_first_refresh ( #128148 )
2024-10-16 14:06:25 +02:00
Michael Hansen
67e0ccf677
Use exposed error messages in Assist ( #127503 )
...
* Use exposed error messages
* Report expose errors
* Remove comment
* Relative import
* Rework expose check logic
* Delay creation of all names list, and skip config/hidden entities
* Clean up commented code and type issue
* Fix test
* Move assistant check
2024-10-11 13:06:03 -04:00
epenet
63391717e7
Replace ValueError with deprecation in data update coordinator ( #128082 )
...
* Replace ValueError with deprecation in data update coordinator
* Rephrase
2024-10-11 17:24:47 +02:00
Erik Montnemery
e682d3461f
Remove parameter add_config_entry from DeviceRegistry.async_update_device ( #128139 )
2024-10-11 14:01:14 +02:00
Erik Montnemery
416ead5311
Improve docstring of EntityComponent and EntityPlatform ( #128135 )
2024-10-11 13:43:20 +02:00
Erik Montnemery
8ba14ef113
Minor improvement of device_registry ( #128075 )
...
* Minor improvement of device_registry
* Remove uncovered line
2024-10-10 22:41:44 +02:00
epenet
f504c27972
Add ability to pass the config entry explicitly in data update coordinators ( #127980 )
...
* Add ability to pass the config entry explicitely in data update coordinators
* Implement in accuweather
* Raise if config entry not set
* Move accuweather models
* Fix gogogate2
* Fix rainforest_raven
2024-10-10 10:20:15 +02:00
G Johansson
959898e0fc
Fix merge_response template not mutate original object ( #127865 )
...
* Fix merge_response template not mutate original object
* Add comment
2024-10-08 18:35:06 +02:00
Erik Montnemery
0956dbb578
Rename `UnitOfConductivity` enum members ( #127919 )
...
* Rename UnitOfConductivity enum members
* Update test snapshots
2024-10-08 14:44:01 +02:00
Erik Montnemery
d6ee10a543
Make FlowHandler.context a typed dict ( #126291 )
...
* Make FlowHandler.context a typed dict
* Adjust typing
* Adjust typing
* Avoid calling ConfigFlowContext constructor in hot path
2024-10-08 12:18:45 +02:00
J. Nick Koston
24fbc366a6
Restore __slots__ to registry entries ( #127481 )
2024-10-05 12:16:52 +02:00
J. Nick Koston
db494de809
Restore __slots__ to core objects ( #127441 )
2024-10-03 22:23:47 +02:00
J. Nick Koston
0f29fd3e10
Switch to using fast cached_property implementation in propcache ( #127339 )
2024-10-03 13:11:02 -05:00
J. Nick Koston
e2b1ef053f
Cache serialization of config entry storage ( #127435 )
2024-10-03 19:51:09 +02:00
Artur Pragacz
c175a68a26
Skip unnecessary checks for entities with unique_id ( #125051 )
2024-10-01 11:27:14 -05:00
Artur Pragacz
98a86c7636
Improve code of normalized name registry ( #125282 )
2024-10-01 11:20:52 -05:00
J. Nick Koston
9ec26a9be5
Fix getting the current host for IPv6 urls ( #126889 )
2024-09-27 11:26:35 +02:00
Erik Montnemery
3c0be47d3c
Add FlowManager.async_has_matching_flow ( #126804 )
...
* Add FlowManager.async_flow_has_matching_flow
* Revert changes from the future
* Apply suggested changes to apple_tv config flow
* Rename methods after discussion
* Update homeassistant/data_entry_flow.py
Co-authored-by: J. Nick Koston <nick@koston.org>
* Move deduplication functions to config_entries, add tests
* Adjust tests
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-27 10:51:36 +02:00
J. Nick Koston
75ae6a8087
Fix getting the host for the current request ( #126882 )
2024-09-27 03:36:05 -05:00
Joost Lekkerkerker
3810c3cbaf
Improve trigger schema validation to ask for `trigger` instead of `platform` ( #126750 )
...
* Add check for missing trigger
* Fix
* Fix
* Escape
2024-09-25 16:44:14 +02:00
Joost Lekkerkerker
33d83e43de
Update trigger validation message ( #126749 )
2024-09-25 15:33:03 +02:00
Joost Lekkerkerker
a1906b434f
Change trigger platform key to trigger ( #124357 )
...
* fix
* Fix
* Fix
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Fix
* Fix
* Fix
* Fix
* Add more tests
* Fix
* Fix tests
* Add tests
* Let's see what the CI does
* It fails on the code that tested the thing ofc
* It fails on the code that tested the thing ofc
* Revert test thingy
* Now the test works again, lovely
* Another one
* Fix websocket thingy
* Only copy when needed
* Improve comment
* Remove test
* Fix docstring
* I think this now also work since this transforms trigger to platform
* Add comment
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Check for mapping
* Add test
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Update test to also test for trigger keys
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-09-25 14:19:58 +02:00
starkillerOG
69ecdda5f5
Add SSL Cipher option to aiohttp async_get_clientsession ( #126317 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 21:31:52 +02:00
G Johansson
93aade6e8e
Change lock state to an enum ( #126379 )
...
* Add new LockState enum for lock states
* Add rest
* Fix insteon tests
* Fix mqtt tests
* Fix tesla_fleet
* Revert back ST_STATE_LOCKED
* Add back constant
2024-09-24 12:30:50 +02:00
Erik Montnemery
b2982c18bb
Reinitialize zeroconf discovery flow on unignore ( #125753 )
...
* Reinitialize zeroconf discovery flow on unignore
* Adjust tests
* Improve comments
* Fix logic for updating discovery keys
* Add tests
* Use mock_config_flow helper in new config_entries test
* Add discovery_keys attribute to ConfigEntry
* Update zeroconf rediscovery
* Change type of ConfigEntry.discovery_keys
* Update tests
* Fix DiscoveryKey.from_json_dict and add tests
* Fix test
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-23 16:49:21 +02:00
J. Nick Koston
0e0ac3efe5
Remove uneeded isoformat calls in registry as_storage_fragment properties ( #126440 )
2024-09-23 14:23:43 +02:00
epenet
cd95c133af
Enable all TID ruff rules ( #126312 )
...
* Enable ruff rule TID252
* One more
* comment
2024-09-20 12:25:51 +02:00
Alberto Montes
28ece89272
Update string formatting to use f-string on core codebase ( #125988 )
...
* Update string formatting to use f-string on core codebase
* Small change given review feedback
2024-09-19 14:31:13 +02:00
Paul Bottein
b471a6e519
Add has_entity_name to entity display dict and fix name ( #125832 )
...
* Add has_entity_name to entity display dict and fix name
* Fix tests
2024-09-19 11:35:44 +02:00
epenet
88cacbc898
Expose component constants for llm helper ( #125891 )
...
* Expose climate INTENT_GET_TEMPERATURE
* Expose conversation trace items
* More fixes for llm helper
2024-09-13 12:43:37 +02:00
chammp
b3377fe5fb
Add condition to trigger template entities ( #119689 )
...
* Add conditions to trigger template entities
* Add tests
* Fix ruff error
* Ruff
* Apply suggestions from code review
* Deduplicate
* Tweak name used in debug message
* Add and improve type annotations of modified code
* Adjust typing
* Adjust typing
* Add typing and remove unused parameter
* Adjust typing
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Adjust return type
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-09-11 09:36:49 +02:00
Erik Montnemery
ded34561b1
Simplify cv._base_trigger_list_flatten ( #125613 )
2024-09-09 21:14:41 +02:00
karwosts
056e6eae82
Add a syntax for merging lists of triggers ( #117698 )
...
* Add a syntax for merging lists of triggers
* Updating to the new syntax
* Update homeassistant/helpers/config_validation.py
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* fix suggestion
* update test and add comments
* not actually json
* move test to new file
* update tests
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-09-09 13:51:32 +02:00
Denis Shulyaka
a85ccb94e3
LLM Tool parameters check ( #123621 )
...
* LLM Tool parameters check
* fix tests
2024-09-08 18:42:51 -07:00
J. Nick Koston
051a28b55a
Remove unneeded wrapping of URL in URL in network helper ( #125265 )
...
* Remove unneeded wrapping of URL in URL in network helper
* fix mocks
2024-09-06 15:34:52 +02:00
Robert Resch
4d96ed4c68
Update modified_at datetime on storage collection changes ( #125218 )
2024-09-04 15:05:51 +02:00
Erik Montnemery
8759a6a14d
Make optional arguments to frame.report kwarg only ( #125062 )
...
* Make optional arguments to frame.report kwarg only
* Update homeassistant/helpers/frame.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-09-03 17:03:36 +02:00
Erik Montnemery
cf10549df4
Restore unnecessary assignment of Template.hass in event helper ( #125143 )
2024-09-03 15:25:35 +02:00
Erik Montnemery
c321bd70e1
Log deprecation warning when `cv.template` is called from wrong thread ( #125141 )
...
Log deprecation warning when cv.template is called from wrong thread
2024-09-03 14:37:21 +02:00
Erik Montnemery
851600630c
Log deprecation warning when `template.Template` is created without `hass` ( #125142 )
...
* Log deprecation warning when template.Template is created without hass
* Improve docstring
2024-09-03 14:28:33 +02:00
Artur Pragacz
fb27297df9
Fix area registry indexing when there is a name collision ( #125050 )
2024-09-02 09:23:07 -10:00
Erik Montnemery
df4bd721b5
Deprecate template.attach ( #124843 )
2024-09-02 15:33:10 +02:00
Erik Montnemery
baa876d4d9
Remove lying comment from service.async_register_entity_service ( #125079 )
2024-09-02 15:18:02 +02:00
Erik Montnemery
114e254aa6
Don't raise when registering entity service with invalid schema ( #125057 )
...
* Don't raise when registering entity service with invalid schema
* Update homeassistant/helpers/service.py
Co-authored-by: Robert Resch <robert@resch.dev>
---------
Co-authored-by: Robert Resch <robert@resch.dev>
2024-09-02 14:20:50 +02:00
G Johansson
78cf7dc873
New template merge_response ( #114204 )
...
* New template merge_response
* Extending
* Extend comment
* Update
* Fixes
* Fix comments
* Mods
* snapshots
* Fixes from discussion
2024-09-02 08:13:10 +02:00
J. Nick Koston
0a9e20615e
Limit maximum template render output to 256KiB ( #124946 )
...
* Limit maximum template render output to 256KiB
fixes #124931
256KiB is likely to still block the event loop for an unreasonable amont of
time but its likely someone is using the template engine for large
blocks of data so we want a limit which still allows that but has
a reasonable safety to prevent the system from crashing down
* Update homeassistant/helpers/template.py
2024-08-30 22:33:57 +02:00
Erik Montnemery
174f22aa2f
Prevent nesting sections in data entry flows ( #124645 )
2024-08-28 15:42:15 +02:00
Erik Montnemery
c772c4a2d5
Allow specifying icons for service sections ( #124656 )
...
* Allow specifying icons for service sections
* Improve kitchen_sink example
2024-08-28 11:15:26 +02:00
Erik Montnemery
55c42fde88
Improve validation of entity service schemas ( #124102 )
...
* Improve validation of entity service schemas
* Update tests/helpers/test_entity_platform.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-08-27 19:05:49 +02:00
Petro31
5d64155bb6
Add zip to template engine ( #122460 )
...
* add zip to template engine
* fix doc strings
2024-08-22 19:11:08 +02:00
Erik Montnemery
533442f33e
Add async friendly helper for validating config schemas ( #123800 )
...
* Add async friendly helper for validating config schemas
* Improve docstrings
* Add tests
2024-08-17 11:01:49 +02:00
Erik Montnemery
f1b7847d1c
Simplify cv._make_entity_service_schema ( #124046 )
2024-08-16 14:09:09 +02:00
Erik Montnemery
69943af68a
Deduplicate async_register_entity_service ( #124045 )
2024-08-16 14:06:35 +02:00
Erik Montnemery
799e95c1bd
Do sanity check in EntityComponent.async_register_entity_service schema ( #124029 )
...
* Do sanity check in EntityComponent.async_register_entity_service schema
* Improve test
2024-08-16 13:39:25 +02:00
Erik Montnemery
f9ade788eb
Do sanity check EntityPlatform.async_register_entity_service schema ( #123058 )
...
* Do a sanity check of schema passed to EntityPlatform.async_register_entity_service
* Only attempt to check schema of Schema
* Handle All/Any wrapped in schema
* Clarify comment
* Apply suggestions from code review
Co-authored-by: Robert Resch <robert@resch.dev>
---------
Co-authored-by: Robert Resch <robert@resch.dev>
2024-08-16 10:01:12 +02:00
Erik Montnemery
e1a0a855d5
Support None schema in EntityComponent.async_register_entity_service ( #123867 )
2024-08-14 11:44:38 +02:00
Erik Montnemery
7063541733
Support None schema in EntityPlatform.async_register_entity_service ( #123064 )
2024-08-14 10:46:29 +02:00
Erik Montnemery
78f7b3340d
Remove unnecessary assignment of Template.hass from event helper ( #123777 )
2024-08-13 12:09:30 +02:00
Erik Montnemery
992de497f2
Remove unnecessary assignment of Template.hass from script helper ( #123780 )
2024-08-13 11:55:37 +02:00
Erik Montnemery
6317053cc6
Remove unnecessary assignment of Template.hass from condition helper ( #123775 )
2024-08-13 11:52:27 +02:00
Erik Montnemery
c49a31e0de
Remove unnecessary assignment of Template.hass from script variables helper ( #123712 )
2024-08-12 21:51:24 +02:00
Erik Montnemery
c5e8710889
Remove unnecessary assignment of Template.hass from service helper ( #123710 )
2024-08-12 21:51:02 +02:00
Erik Montnemery
6caec89793
Remove unnecessary assignment of Template.hass from trigger entity helper ( #123709 )
2024-08-12 21:50:50 +02:00
J. Nick Koston
69740e865c
Reduce number of aiohttp.TCPConnector cleanup_closed checks to one per minute ( #123268 )
2024-08-08 15:52:09 -05:00