Commit Graph

171 Commits

Author SHA1 Message Date
Erik Montnemery
f134219c74 Minor tweak of config entity_registry test (#68141) 2022-03-14 23:07:52 +01:00
Erik Montnemery
314175135f Hide switch_as_x tracked entity (#67949)
* Hide switch_as_x tracked entity

* Hide wrapped switch during config flow

* Allow setting/getting entity disabled by via WS

* Adjust tests

* Improve test coverage

* Improve tests
2022-03-14 19:39:07 +01:00
Franck Nijhof
5965b015dd Adjust data entry flow to have an option data_schema (#67637) 2022-03-04 16:42:02 +01:00
J. Nick Koston
9a5eec561a Only set require_restart on config entry reload if its not recoverable (#66994) 2022-02-21 10:27:23 -08:00
Erik Montnemery
c496748125 Add WS API for removing a config entry from a device (#66188)
* Add WS API for removing a config entry from a device

* Address review comments

* Address review comments

* Remove entity cleanup from ConfigEntries

* Update + add tests

* Improve comments in test

* Add negative test

* Refactor according to review comments

* Add back async_remove_config_entry_device

* Remove unnecessary error handling

* Simplify error handling
2022-02-21 10:11:18 +01:00
Joakim Sørensen
38f7213002 Add more tests to device registry updates (#65989) 2022-02-07 11:15:04 +01:00
Erik Montnemery
0eb2caabcf Report unmet dependencies for failing config flows (#65061)
* Report unmet dependencies for failing config flows

* Apply suggestions from code review

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/setup.py

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Modify error message

* Add test

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-02-02 15:06:27 +01:00
Bram Kragten
c82aa1606a Allow removing keys from automation (#65374) 2022-02-01 09:45:08 -08:00
Erik Montnemery
55ff1e9c1d Revert "Allow setting entity options with config/entity_registry/update" (#64693) 2022-01-23 21:07:12 -08:00
Paulus Schoutsen
63f8e437ed Add Home Assistant Content user (#64337) 2022-01-21 10:06:39 -08:00
Erik Montnemery
3575009330 Store remote domain in Cloud preferences (#64532) 2022-01-21 09:42:34 -08:00
Erik Montnemery
c60bb1890d Remove unused group config view (#63434) 2022-01-05 12:16:11 +01:00
J. Nick Koston
04153c0075 Add hardware version to the device registry (#61650) 2021-12-16 05:16:19 -06:00
Ville Skyttä
5bf67cac66 Use RegistryEntryDisabler (#60436) 2021-12-15 23:25:40 +02:00
Ville Skyttä
7db3246de4 Make config entry disabled_by an enum (#60445)
* Make config entry disabled_by an enum

* Update homeassistant/config_entries.py

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-12-15 20:53:21 +01:00
Marcel van der Veldt
7c7df5bb51 Change check for existence of options flow (#61147)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-12-07 12:50:34 -08:00
Bram Kragten
ef458b237c Return if user is local only (#60917) 2021-12-03 16:34:26 +01:00
Ville Skyttä
9f4de8df18 Make device entry disabled by an enum (#60239) 2021-11-24 22:32:16 +01:00
J. Nick Koston
af51aeb6dc Show how user input is malformed in the UI on error (#60057) 2021-11-23 22:50:54 +01:00
Ville Skyttä
39691faccc Use DeviceEntryType in non-typechecked code too (#58646) 2021-11-23 10:04:33 +01:00
Erik Montnemery
49a27e12ad Add support to entity registry for overriding device_class (#59985) 2021-11-22 08:38:06 -08:00
Franck Nijhof
8b30cb509f Cleanup customize API endpoint (#59824) 2021-11-22 12:01:56 +01:00
Erik Montnemery
0df2904b89 Improve some entity registry tests (#59902) 2021-11-22 10:24:37 +01:00
J. Nick Koston
ebb25ab0e6 Make yaml file writes safer (#59384) 2021-11-10 22:19:56 -08:00
Paulus Schoutsen
f51e1fcb67 Check for uncaught service not found exceptions (#58010) 2021-11-01 14:33:09 +01:00
Paulus Schoutsen
6cd83d1f66 Allow storing picture in area registry (#58539) 2021-10-27 10:11:05 -07:00
Ville Skyttä
73d192b3f3 Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* (#57989) 2021-10-22 19:43:40 +02:00
Erik Montnemery
e27e4c3561 Add support for device configuration URL (#57539)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-14 11:16:56 -07:00
Erik Montnemery
4b3d423767 Add config and diagnostic entities (#57528)
* Add config entity concept

* Rename is_config_entity to entity_category

* Add test

* Add 'diagnostic' entity category
2021-10-14 10:04:26 +02:00
Ville Skyttä
d8d34fdd3b Prefer HTTPStatus over int in HA view JSON functions (#56504)
* Prefer HTTPStatus over int in HA view JSON functions

* Update zwave tests to not expect a fixed typo
2021-09-22 21:59:52 +03:00
Franck Nijhof
1968b95829 Add currency core configuration (#53541)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-07-28 08:55:58 +02:00
Joakim Sørensen
85c1614204 Add currency to location data (#53575) 2021-07-27 21:05:16 -07:00
Ville Skyttä
470f2dd73f Upgrade pyupgrade to 2.21.2, apply its changes (#52987) 2021-07-19 10:46:09 +02:00
Paulus Schoutsen
ee2c950716 Merge system options into pref properties (#51347)
* Make system options future proof

* Update tests

* Add types
2021-06-01 22:34:31 +02:00
Paulus Schoutsen
4821484d2c Add system option to disable polling (#51299) 2021-05-31 15:36:40 -07:00
Joakim Sørensen
7ff14b47a8 Use whoami for location lookup (#50934) 2021-05-22 20:34:48 -07:00
Ville Skyttä
19d25cd901 Change config entry state to an enum (#49654)
* Change config entry state to an enum

* Allow but deprecate EntryState str equality comparison

* Test fixes

* Rename to ConfigEntryState

* Remove str comparability backcompat

* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Joakim Sørensen
2f10f59717 Block custom integrations with missing or invalid version (#49916) 2021-05-17 15:48:41 +02:00
J. Nick Koston
bf2d40adfe Migrate from pytz to python-dateutil (#49643)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-07 22:46:26 -07:00
Franck Nijhof
177317a345 Allow passing options in config flow entry creation (#49912) 2021-05-05 22:14:01 -07:00
Bram Kragten
301d4b0657 Fix saving a scene (#49980)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-02 22:11:57 -07:00
Franck Nijhof
c68b259bd3 Cleanup of unused connection_class logic (#49865)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2021-04-29 23:12:58 +02:00
Ville Skyttä
153d6e891e Use config_entries.SOURCE_* constants (#49631) 2021-04-25 11:27:40 +02:00
Erik Montnemery
8013eb0e08 Allow data entry flows to hint for additional steps (#49202) 2021-04-23 11:02:12 -07:00
Ville Skyttä
a396619251 Use disabled_by constants (#49584)
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
Paulus Schoutsen
265fdea83b Allow config entries to store a reason (#49581) 2021-04-23 09:23:43 +02:00
Erik Montnemery
d26d2a8446 Return config entry details for 1-step config flows (#48585) 2021-04-01 16:20:53 +02:00
Erik Montnemery
374dcde487 Return config entry details after creation (#48316) 2021-03-26 18:31:29 +01:00
J. Nick Koston
3f2ca16ad7 Index config entries by id (#48199) 2021-03-21 21:44:29 -07:00
Erik Montnemery
a9a9e1f199 Tweak automation tracing (#47721) 2021-03-10 14:42:13 -08:00