Commit graph

68 commits

Author SHA1 Message Date
Paul Bottein
38eda9f46e
Add multiple option to text selector ()
Co-authored-by: Robert Resch <robert@resch.dev>
2023-11-29 18:32:32 +01:00
schelv
31cab5803c
Add Option For Kelvin Unit To Color Temperature Selector () 2023-11-29 12:25:06 +01:00
Paul Bottein
89a9e6c6e8
Add trigger selector for blueprint () 2023-11-03 09:11:49 +01:00
Allen Porter
5d430f53cd
Add todo component () 2023-10-23 22:53:00 +02:00
G Johansson
dc29190564
CountrySelector ()
* CountrySelector

* rename

* remove multiple for now

* Add no_sort

* Update homeassistant/helpers/selector.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-10-12 16:44:30 +02:00
Michael Arthur
82b3ced4f1
Add lawnmower entity ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-08-21 12:19:55 +02:00
Erik Montnemery
683c2f8d22
Add service for getting a weather forecast ()
* Add service for getting a weather forecast

* Fix translations

* Improve service description

* Improve error handling

* Adjust typing

* Adjust typing

* Adjust service response format
2023-08-07 14:05:37 +02:00
Paul Bottein
83af2f5b8b
Allow to sort options in select selector ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-08-03 21:49:22 +02:00
Paulus Schoutsen
aad281db18
Add service to OpenAI to Generate an image ()
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-07-26 10:14:18 +02:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum () 2023-07-23 23:19:24 +02:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] () 2023-07-22 17:03:44 -05:00
Paul Bottein
d8c989f732
Make default theme selectable for set theme service () 2023-07-18 17:36:35 +02:00
Franck Nijhof
b9f92b526b
Add prefix support to text selector () 2023-07-18 12:17:31 +02:00
Paul Bottein
e513b7d0eb
Add condition selector for blueprint ()
* Add condition selector for blueprint

* Add tests and validation

* Update comment
2023-07-12 10:58:35 -04:00
Erik Montnemery
3d064b7d6b
Add filters to cover/services.yaml () 2023-07-08 11:51:02 +02:00
Bram Kragten
a7dfe46fb1
Add conversation agent selector, use in conversation.process service () 2023-06-28 21:38:06 -04:00
Raman Gupta
aab58ad89c
Fix entity and device selector TypedDict's () 2023-06-13 10:52:55 +02:00
Mike Degatano
08a719e09e
Add backup location and mount failed repair ()
* Add backup location and mount failed repair

* Fix coverage

* Change storage_location to backup_location

* Use backticks

* Update homeassistant/helpers/selector.py

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-05-24 10:33:41 +02:00
Bram Kragten
aa4544accb
Add assist pipeline and language selectors () 2023-04-26 18:39:02 +02:00
Erik Montnemery
9384ec18f8
Add filters to climate and light service descriptions ()
* Add filters to climate and light service descriptions

* Allow specifying enums directly

* Update service descriptions

* Adjust test

* Cache entity features

* Lint

* Improve error handling, add list of known base components

* Don't allow specifying an entity feature as int
2023-03-16 15:59:51 +01:00
Erik Montnemery
886c2635ad
Add support for constant selector ()
* Add support for constant selector

* Adapt to frontend PR changes
2023-03-16 09:02:26 -04:00
Paul Bottein
e95944bf9f
Add filter options to entity and device selectors ()
* Add support for multiple device classes

* Add support for entity filter selector

* Add support for device filter selector

* Apply suggestions

* Fix wrong property name

* Update snapshot

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-27 10:38:18 -05:00
Jan Bouwhuis
25392655e7
Allow translating select selector options ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-01-17 16:22:19 +01:00
Franck Nijhof
5cfa98e400
Improve typing of SelectorConfig () 2023-01-02 18:52:15 -05:00
G Johansson
6cb004b770
Selector for SingleEntitySelectorConfig allow domain to be a list () 2022-11-24 22:34:39 +01:00
epenet
9132c42037
Improve Selector typing () 2022-11-24 19:27:26 +01:00
Steve Repsher
c940ad9920
Add autocomplete to text selector () 2022-11-15 12:58:59 -06:00
Erik Montnemery
84a812ad05
Allow setting number selector step size to 'any' ()
* Allow setting number selector step size to 'any'

* Improve test coverage
2022-09-15 08:29:46 +02:00
Franck Nijhof
dfc3e7d80f
Don't expose attribute option in state selector () 2022-08-26 11:51:36 +02:00
Franck Nijhof
4d02cccd11
Fix typing of ConfigEntrySelector () 2022-08-24 15:15:29 +02:00
Franck Nijhof
dc17bca00c
Add config entry selector () 2022-08-24 00:29:30 +02:00
Franck Nijhof
5a0e4fa5ee
Add hide attribute support to attribute selector ()
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-08-22 12:55:30 +02:00
Franck Nijhof
453307e01a
Add attribute support to state selector () 2022-08-20 13:30:38 -04:00
Franck Nijhof
2d197fd59e
Add state selector ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-08-19 09:24:53 -04:00
Paulus Schoutsen
6e92931087
Add file selector and file upload integration () 2022-08-18 12:02:12 -04:00
J. Nick Koston
034c0c0593
Improve YAML Dump times with C Dumper () 2022-06-13 13:14:30 -07:00
Paulus Schoutsen
e35a5a1a28
Fix other enums in helpers () 2022-05-07 20:57:48 -07:00
Paulus Schoutsen
b1a04302b5
Stringify enums in selectors () 2022-05-06 11:25:01 -07:00
Paulus Schoutsen
353cc0b8c2
Fix importing blueprints ()
Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-05-05 14:33:17 -07:00
Franck Nijhof
ce1f074ca9
Add Template selector () 2022-04-18 11:28:01 -07:00
Raman Gupta
b325c112b4
Add SelectorType enum and TypedDicts for each selector's data ()
* rebase off current

* rearrange

* Overload selector function

* Update/fix all selector references

* better typing?

* remove extra option

* move things around

* Switch to Sequence type to avoid ignoring mypy error

* Get rid of ...'s

* Improve typing to reduce number of ignores

* Remove all typing ignores

* Make config optional for selectors that don't need a config

* add missing unit prefixes

* Rename TypedDicts

* Update homeassistant/helpers/selector.py

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

* review feedback

* remove peta from integration integration

* Fix min_max

* Revert change to selector function

* Fix logic

* Add typing for selector classes

* Update selector.py

* Fix indent

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-04-11 09:20:56 +02:00
Raman Gupta
6b2fe6cba9
Add support for new select selector properties ()
* Add support for new select selector properties

* fix mode option

* Apply suggestions from code review

* Correct validation for empty options, update tests

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-03-31 11:28:49 +02:00
Erik Montnemery
1746677b61
Clarify duration selector () 2022-03-28 09:28:32 +02:00
Erik Montnemery
0899b67578
Update selectors with frontend changes () 2022-03-26 21:41:39 -07:00
Franck Nijhof
a2a612c640
Add enable_day to duration selector () 2022-03-26 21:31:22 -07:00
Erik Montnemery
3068c9c9d3
Sort selectors alphabetically () 2022-03-24 13:20:16 +01:00
Erik Montnemery
d7145095ef
Tweak selectors ()
* Optionally don't convert output of duration and time selectors

* Allow number selector selection to be None

* Never convert output of duration and time selectors

* Revert "Allow number selector selection to be None"

This reverts commit b6f52c1e83.
2022-03-18 10:26:05 +01:00
Erik Montnemery
4e7d4db7ae
Align selectors with frontend updates ()
* Align selectors with frontend updates

* Drop metadata from MediaSelector selection

* Adjust blueprint tests

* Address review comments

* Add tests for new selectors

* Don't stringify input

* Require min+max for number selector in slider mode

* vol.Schema does not like static methods

* Tweak
2022-03-10 16:17:59 +01:00
Richard T. Schaefer
15580281a3
Allow area, device, and entity selectors to optionally support multiple selections like target selector ()
* Allow area, device, and entity selectors to optionally support multiple selections like target selector

* Update according to code review comments

* Adjust tests

* Update according to review comments

* Tweak error message for multiple entities

Co-authored-by: Erik <erik@montnemery.com>
2022-03-03 10:35:06 +01:00
Marc Mueller
ec980a574b
Improve typing [util.decorator] () 2022-02-23 20:58:42 +01:00