Commit Graph
77 Commits
Author SHA1 Message Date
Sid b456d97e65 Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
Joost Lekkerkerker 7f9ad140f9 Fix wrong icons (#114567)
* Fix wrong icons

* Fix wrong icons
2024-04-01 15:53:14 +02:00
Joost Lekkerkerker b6906d963b Add service icons to Input Select (#113316) 2024-03-14 13:36:30 +01:00
Marc Mueller 8809d3aa88 Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
Erik Montnemery df73850f56 Move definition of attributes excluded from history to entity classes (#100430)
* Move definition of attributes excluded from history to entity classes

* Revert change which should be in a follow-up PR

* Fix sun unrecorded attributes

* Fix input_select unrecorded attributes
2023-09-21 15:02:47 +02:00
Marc Mueller 77f38e33e5 Import names from typing instead of typing_extensions [3.11] (#97065) 2023-07-22 17:03:44 -05:00
Joost Lekkerkerker b367c95c81 Add more common translations (#96429)
* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations
2023-07-12 22:00:05 -04:00
Franck Nijhofandc0ffeeca7 d6771e6f8a Migrate input helpers services to support translations (#96392)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
2023-07-12 17:12:22 +02:00
j4n-e4t 28f6062bab Add error handling to input_select integration (#93940) 2023-06-05 19:53:24 +02:00
Erik Montnemery 8f8a398631 Support marking an assist pipeline as preferred (#91418)
* Support marking an assist pipeline as preferred

* Adjust

* Revert unneeded change

* Send preferred pipeline id in pipeline list

* Don't use property functions for the preferred pipeline
2023-04-15 10:05:46 -04:00
Erik Montnemery 59a02cd08c Allow storing other items than untyped dict in StorageCollection (#90932)
Allow storing other items than untyped dict in StorageCollection
2023-04-06 10:57:00 -04:00
Erik Montnemery fa308d8e10 Drop unused logger argument for StorageCollection() (#90913) 2023-04-06 13:28:34 +02:00
Franck Nijhof fb4b35709d Add state translations for helpers (#90356)
* Add state translations for helpers

* Managed via the UI
2023-03-27 16:19:25 -04:00
Erik Montnemery 90d7fb8418 Sort manifests 5 (#87026) 2023-02-08 20:35:25 +01:00
Marc Mueller f7b39aa4a8 Add Self typing (3) [mypy 1.0] (#87600) 2023-02-06 22:30:07 -06:00
Franck NijhofandErik Montnemery 939eef3b28 Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof 1409b89af3 Sync input_select & select (#87255) 2023-02-03 15:43:17 +01:00
Franck Nijhof baef267f33 String formatting and max line length - Part 3 (#84394) 2022-12-22 13:35:47 +01:00
epenet 996bcbdac6 Make EntityComponent generic (#78473) 2022-09-14 14:16:23 -04:00
Erik Montnemery 19e853dbb0 Don't allow partial update of input_select settings (#78376) 2022-09-13 14:56:59 -04:00
Erik Montnemery b0d033ef29 Add mixin class CollectionEntity for the collection helper (#77703)
* Add mixin class CollectionEntity for the collection helper

* Improve typing

* Address review comments

* Fix tests
2022-09-03 12:56:49 +02:00
J. Nick Koston f63465bd71 Add recorder platform to input_select (#70223) 2022-04-18 22:18:19 +02:00
Paulus Schoutsen 423ecfa69d Mark all input integrations as helpers (#68922) 2022-03-30 22:50:13 +02:00
Erik Montnemery 4236764fd5 Don't allow creating or updating input_select with duplicates (#66718)
* Don't allow creating or updating input_select with duplicates

* Simplify error message

* Improve error message
2022-02-17 13:11:49 +01:00
Erik Montnemery eaf73318e1 Remove duplicated options from input_select (#66680) 2022-02-16 22:04:49 +01:00
Paulus Schoutsen 5da923c341 Protect state.as_dict from mutation (#65693) 2022-02-04 14:45:25 -08:00
Marc Mueller 4e2cd1bec0 Update typing (2) [a-i] (#63923) 2022-01-11 21:23:26 +01:00
Marc Mueller 246338f93d Use const imports [g-i] (#63468) 2022-01-05 17:08:00 +01:00
GitHub Action 72b0eb719e [ci skip] Translation update 2021-11-20 00:12:27 +00:00
Franck Nijhof 65b19da3ff Refactor input_select (#53334) 2021-10-25 20:38:06 -07:00
Marc Mueller aa7dc78a1e Use assignment expressions 11 (#57792) 2021-10-17 20:15:48 +02:00
GitHub Action 291a2d6258 [ci skip] Translation update 2021-08-29 00:11:57 +00:00
tkdrobandFranck Nijhof 028a07d86f Wrap up selectors (#50794)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2021-05-25 14:45:17 +02:00
Michael b1138b1aab Add constructor return type in integrations E-K (#50902) 2021-05-20 18:47:30 +03:00
Franck Nijhof eccefd154a Extend targets for entity component services (#50760) 2021-05-17 14:06:50 +02:00
Franck Nijhof 1b5596b4c2 Remove ServiceCallType alias from codebase (#49844) 2021-05-02 00:15:27 +02:00
Marc Mueller c07646db5d Update typing syntax (#49480)
* Update typing syntax

* Replace typing imports with ones from collections where possible

* Changes after review
2021-04-20 17:40:41 +02:00
Franck Nijhof c1d5638739 Remove HomeAssistantType alias from entity components - Part 2 (#48468) 2021-03-29 13:24:56 -10:00
Erik Montnemery 346a724ac3 Mark base components' state_attribute @final, rename others to extra_state_attributes (#48161)
* Mark base state_attributes @final, rename others to extra_state_attributes

* Fix calendar, update tests
2021-03-21 10:38:24 +01:00
Marc Mueller 283b4abe67 Update typing 09 (#48059) 2021-03-18 10:02:00 +01:00
HomeAssistant Azure f625e324dd [ci skip] Translation update 2021-03-18 00:07:07 +00:00
tkdrobandTobias Sauerwein ab53b49d3f Clean up constants (#46948)
* Clean up constants

* clean up humidifier constants

* fix tests

* fix prometheus tests

Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-03-02 12:52:00 +01:00
Franck NijhofandTobias Sauerwein ea4bbd771f Add service names to previously enriched services (#46929)
Co-authored-by: Tobias Sauerwein <cgtobi@users.noreply.github.com>
2021-02-23 14:10:13 +01:00
Franck Nijhof da662c4890 Add selectors to Input * service definitions (#46652) 2021-02-18 12:23:30 +01:00
Franck Nijhof dd8d4471ec Postponed evaluation of annotations for integrations (#46455) 2021-02-12 18:54:00 +01:00
Paulus SchoutsenandErik 9e07910ab0 Mark entities as unavailable when they are removed but are still registered (#45528)
* Mark entities as unavailable when they are removed but are still registered

* Add sync_entity_lifecycle to collection helper

* Remove debug print

* Lint

* Fix tests

* Fix tests

* Update zha

* Update zone

* Fix tests

* Update hyperion

* Update rfxtrx

* Fix tests

* Pass force_remove=True from integrations

Co-authored-by: Erik <erik@montnemery.com>
2021-02-08 10:45:46 +01:00
Paulus Schoutsen 959ed6d077 Update translations 2021-02-03 11:46:49 +01:00
Lars Marowsky-Brée 34194da1b6 New methods for input_select component (#42968)
This adds a `cycle` attribute to select_previous/next, and
select_first and select_last services.

This is quite useful for streamlining using input_select via
automations, such as when they represent a list of states to step
through; if the first option is the dimmest and the last the brightest,
one may not want to accidentally cycle from the first to the last, for
example.

Similarly, being able to directly select the first or last removes
adjustment in related automations.
2021-01-27 11:17:59 +01:00
HomeAssistant Azure c30982c981 [ci skip] Translation update 2020-09-25 00:04:29 +00:00
HomeAssistant Azure 587e3f1eb2 [ci skip] Translation update 2020-09-21 00:02:47 +00:00