Michael Hansen
ac87528bec
Add language to conversation and intent response ( #83486 )
...
* Add language to conversation and intent response
* Add language parameter to conversation/process service
* Move language to intent response instead of speech
* Add language to almond conversation agent
* Fix intent test
2022-12-08 11:39:28 -05:00
epenet
9f7fd8956f
Use new unit enums in helpers ( #83387 )
2022-12-06 22:20:17 +01:00
Erik Montnemery
8e617bbc1d
Add `translation_key` property to entites ( #82701 )
...
* Add translation_key attribute to entity state
* Update accuweather test
* Index entity translation keys by platform
* Store translation key in entity registry
2022-12-01 09:34:09 +01:00
Mike Degatano
b3deb476ef
Allow is_state to accept a list of values ( #81877 )
...
* Allow is_state to accept a list of values
* Slightly more efficient
* Fix typing of state
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-30 22:54:14 +01:00
epenet
98f263c289
Make SchemaFlowFormStep functions async ( #82962 )
...
* Make validate async in SchemaOptionsFlowHandler
* Adjust group
* Adjust tests
* Move all to async
* Adjust integrations
* Missed an integration
* Missed one
* Rebase to fix conflict
2022-11-30 12:26:52 +01:00
epenet
663482fb10
Add flow_state to SchemaCommonFlowHandler ( #82967 )
...
* Add local_context to SchemaCommonFlowHandler
* Rename to context
* Rename to flow_state
2022-11-30 10:18:57 +01:00
Marc Mueller
79b400d71b
Improve PluggableActionsEntry typing ( #82885 )
...
* Improve PluggableActionsEntry typing
* Add parameter typing
2022-11-29 13:37:22 +01:00
epenet
724a79a8e8
Add suggested_value helper for FlowHandler ( #82491 )
...
* Add suggested_value helper for ConfigFlow
* Move helper function to FlowHandler
* Rename and adjust docstring
* Fix rebase
2022-11-29 10:16:01 +01:00
epenet
53e05dec02
Add ability to add sensors in scrape config flow ( #82802 )
...
* Add ability to add sensors in scrape config flow
* Fix menu
* Adjust comment
* Use sentinel
* Adjust docstring
2022-11-29 10:13:38 +01:00
Marc Mueller
63d519c1a8
Spelling updates ( #82867 )
2022-11-28 16:51:43 +01:00
Erik Montnemery
effa9940ff
Save migrated store data ( #82523 )
2022-11-28 09:42:08 -05:00
epenet
a236836796
Fix typo in helper docstring ( #82824 )
2022-11-28 09:15:16 +01:00
Erik Montnemery
35dbc3151a
Fix docstring for entity helper ( #82704 )
...
Fix some language in entity.py
2022-11-25 18:20:33 +01:00
epenet
0a4549e202
Add callback to SchemaFlowFormStep for suggested_values ( #82706 )
...
* Allow callback for suggested_values
* docstring
2022-11-25 16:38:58 +01:00
Erik Montnemery
e9ce08763c
Allow SchemaFlowFormStep.next_step to return None ( #82707 )
2022-11-25 16:00:26 +01:00
epenet
fcba9974e5
Rename options to suggested_values ( #82700 )
2022-11-25 14:40:20 +01:00
epenet
6c615016b8
Fix None schema in SchemaCommonFlowHandler ( #82699 )
2022-11-25 14:30:02 +01:00
Franck Nijhof
c715035016
Add support for raising ConfigEntryError ( #82689 )
2022-11-25 11:33:03 +01:00
epenet
9feb64cebd
Simplify schema callback in SchemaFlowFormStep ( #82682 )
...
* Simplify SchemaFlowFormStep.schema callback
* Expose parent handler
* Adjust docstrings
2022-11-25 10:50:38 +01:00
epenet
a4dbb9a24e
Add handler to validate_user_input ( #82681 )
...
* Add handler to validate_user_input
* Adjust group config flow
2022-11-25 09:29:54 +01:00
Erik Montnemery
e1338adf1a
Allow configuring country and language in core config ( #81734 )
...
* Allow configuring country and language in core config
* Add script for updating list of countries
* Use black for formatting
* Fix quoting
* Move country codes to a separate file
* Address review comments
* Add generated/countries.py
* Get default language from owner account
* Remove unused variable
* Add script to generate list of supported languages
* Add tests
* Fix stale docsring
* Use format_python_namespace
* Correct async_user_store
* Improve typing
* Fix with_store decorator
* Initialize language in core store migration
* Fix startup
* Tweak
* Apply suggestions from code review
Co-authored-by: Franck Nijhof <git@frenck.dev>
* Update storage.py
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-11-24 23:25:50 +01:00
G Johansson
6cb004b770
Selector for SingleEntitySelectorConfig allow domain to be a list ( #82666 )
2022-11-24 22:34:39 +01:00
epenet
9f9114cb4a
Simplify SchemaFlowStep typing ( #82661 )
...
* Simplify SchemaFlowStep typing
* Adjust accuweather
2022-11-24 21:59:41 +01:00
Erik Montnemery
978122c882
Fix docstring in SchemaFlowFormStep ( #82612 )
2022-11-24 20:30:23 +01:00
epenet
9132c42037
Improve Selector typing ( #82636 )
2022-11-24 19:27:26 +01:00
epenet
caa99ea9fb
Allow next_step to be a string ( #82647 )
...
* Allow next_step to be a string
* Adjust docstrings
* Add test
2022-11-24 18:55:53 +01:00
Erik Montnemery
8577310e6d
Fix show_menu support in SchemaFlowFormStep ( #82634 )
...
* Fix show_menu support in SchemaFlowFormStep
* Add test
* Fix test
2022-11-24 17:30:01 +01:00
epenet
e386bab682
Add type hint to template wrapper ( #82563 )
...
* Add type to template hassfunction decorator
* Adjust to use EvalContext
* Use runtime.Context
* Use TypeVar for context
* Use jinja2.runtime.Context
* Reverse declarations
* Use Any
* Update homeassistant/helpers/template.py
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-11-24 15:30:21 +01:00
epenet
a856abf47f
Make async_options_flow_finished optional ( #82615 )
...
* Make async_options_flow_finished optional
* Adjust docstring
2022-11-24 14:43:40 +01:00
epenet
ba18571cbe
Set last_step in SchemaCommonFlowHandler ( #82616 )
...
* Set last_step in SchemaCommonFlowHandler
* Always use boolean
* Adjust next_step definition
2022-11-24 14:37:55 +01:00
epenet
4c38a5d773
Add OptionsFlow helper class ( #82531 )
...
* Add OptionsFlow helper classes
* More integrations
* Adjust SchemaOptionsFlowHandler
* Use single class
* Simplify access to options
* Reduce PR
* Make _options private
* Add test
2022-11-24 12:18:09 +01:00
epenet
b525259878
Add type hints to template result wrapper ( #82575 )
...
* Add type hints to template result wrapper
* Remove `ignore[call-arg]`
* Use tuple
* Alphabetise
2022-11-24 08:41:14 +01:00
On Freund
9dd1b85cbb
Allow `device_attr` and `is_device_attr` to be used as a filter and a test (respectively) ( #81924 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2022-11-24 08:31:17 +01:00
epenet
d7f0b904d0
Add type to template function ( #82564 )
2022-11-23 21:50:45 +01:00
epenet
f91e250e90
Fix TemplateError definition ( #82570 )
2022-11-23 20:30:32 +01:00
Jan Bouwhuis
23bc39b7f4
Add type hints on `Template().__init__()` ( #82574 )
2022-11-23 20:26:55 +01:00
epenet
aa02a53ac6
Add type hints to template states ( #82582 )
...
* Add type hints to template states
* Undo rename
* Remove invalid mypy issue link
2022-11-23 17:46:51 +01:00
epenet
687d162a94
Fix incorrect type hint in SchemaOptionsFlow ( #82516 )
2022-11-22 12:45:35 +01:00
epenet
9d192643ee
Move PluggableAction to trigger helpers ( #81900 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Joakim Plate <elupus@ecce.se>
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-11-22 11:35:18 +01:00
J. Nick Koston
d0efdd750f
Fix high latency from thundering heard at 0 microseconds ( #82233 )
...
* Fix high latency at 0 microseconds
fixes #82231
* fix async_track_utc_time_change alignment
* use replace to preserve fold
* naming
* tweak
* make async_fire_time_changed aware of the thundering heard issue
2022-11-17 14:22:06 -05:00
Aarni Koskela
4f7b583f19
Fix shadowing of outer name in config_validation ( #82088 )
...
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2022-11-16 14:04:57 +01:00
Aarni Koskela
8038485ca4
Use partition instead of split where possible in core ( #81806 )
2022-11-15 21:45:48 +01:00
Steve Repsher
c940ad9920
Add autocomplete to text selector ( #81060 )
2022-11-15 12:58:59 -06:00
uvjustin
e7dd31f37b
Iterate over entities safely in camera setup ( #82080 )
...
fixes undefined
2022-11-15 08:02:35 -06:00
Aarni Koskela
3d29638804
Deduplicate `sensor_device_info_to_device_info` ( #81905 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-11-14 12:12:53 -06:00
epenet
9f691ab359
Revert "Fix coordinator TypeVar definition ( #81298 )" ( #81834 )
2022-11-09 09:03:59 +01:00
Marc Mueller
0c8eeaa643
Update mypy to 0.990 ( #81783 )
...
* Update mypy to 0.990
* Remove type ignore - overriding attr with property (13475)
* Remove type ignores - hasattr (13544)
* Adjust type ignore - assignment (13549)
* New error code - type-abstract (13785)
* Disable annotation-unchecked (13851)
2022-11-08 14:41:39 +01:00
epenet
318122fe53
Fix coordinator TypeVar definition ( #81298 )
...
* Adjust coordinator TypeVar definition
* Adjust again
2022-11-08 10:38:29 +01:00
Erik Montnemery
c3d4a9cd99
Create repairs issue if an outdated currency code is configured ( #81717 )
...
* Create repairs issue if an outdated currency code is configured
* Add script for updating list of currencies
* Use black for formatting
* Move currency codes to a separate file
* Address review comments
2022-11-08 07:21:09 +01:00
epenet
5e05739019
Add type hints to template helper ( #81308 )
...
* Add type hints to template helper
* Update homeassistant/helpers/template.py
* Adjust use of ensure_compiled
2022-11-07 09:41:53 +01:00