Commit Graph
212 Commits
Author SHA1 Message Date
Erik Montnemery 83a10cca53 Enable basic type checking for config (#66197) 2022-02-09 19:09:55 +01:00
Joakim Sørensen 63d3a47599 disabled_by can be None when updating devices (#65934) 2022-02-06 20:23:31 +01:00
Paulus Schoutsen 8574ee04ba Fix passing a string to device registry disabled_by (#65701) 2022-02-04 10:55:45 -08:00
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
Erik Montnemery 3575009330 Store remote domain in Cloud preferences (#64532) 2022-01-21 09:42:34 -08:00
epenetandepenet 946238fb02 Import frontend (#64104)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-14 10:01:12 +01:00
Erik Montnemery 9c9dc4cb8c Import websocket_api (part 1) (#63905) 2022-01-11 18:24:08 +01:00
Franck Nijhof 20bdcc7fff Replace hass.helpers: async_get_clientsession() (#63910) 2022-01-11 17:33:50 +01:00
Erik Montnemery 3b7448bb1c Import websocket_api (part 2) (#63906) 2022-01-11 17:26:25 +01:00
Erik Montnemery c60bb1890d Remove unused group config view (#63434) 2022-01-05 12:16:11 +01:00
epenetandepenet 9e16f87ddc Add init type hints [b-c] (#63100)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-02 17:05:18 +01:00
Michael a721927b9a Use ConfigEntryDisabler enum (#62816) 2021-12-27 10:08:29 +01:00
J. Nick Koston 04153c0075 Add hardware version to the device registry (#61650) 2021-12-16 05:16:19 -06:00
Ville SkyttäandErik Montnemery 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
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
Franck Nijhof 66c7387111 Fix str for device registry entry_type warnings caused by core (#60989) 2021-12-04 07:46:42 -05:00
Bram Kragten ef458b237c Return if user is local only (#60917) 2021-12-03 16:34:26 +01:00
Paulus Schoutsen 914f7f85ec Add local only users (#57598) 2021-11-29 14:01:03 -08:00
Ville Skyttä 9f4de8df18 Make device entry disabled by an enum (#60239) 2021-11-24 22:32:16 +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 1609c0cc2c Sort some entity_registry code (#59876)
* Sort some entity_registry code

* Sort some more entity_registry code

* Tweak
2021-11-18 11:51:32 +01:00
J. Nick Koston 96f7b0d910 Use atomicwrites for mission critical core files (#59606) 2021-11-15 11:19:31 +01:00
J. Nick Koston ebb25ab0e6 Make yaml file writes safer (#59384) 2021-11-10 22:19:56 -08:00
Marc Mueller 1ce889be60 Use assignment expressions 36 (#58825) 2021-10-31 18:35:27 +01:00
Paulus Schoutsen 6cd83d1f66 Allow storing picture in area registry (#58539) 2021-10-27 10:11:05 -07:00
Marc Mueller 2b72b7b7b9 Use assignment expressions 09 (#57790) 2021-10-17 20:19:56 +02:00
Marc Mueller 5048bad050 Use assignment expressions 05 (#57785) 2021-10-17 19:56:00 +02:00
Erik MontnemeryandPaulus Schoutsen 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
Erik Montnemery bdbedd0f06 Alphabetize parts of device registry code (#57532) 2021-10-12 12:08:59 +02:00
Ville Skyttä cc97502a0c Use HTTPStatus instead of HTTP_* consts in aiohttp web response statuses (#56541) 2021-10-01 09:27:44 -07: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
Marc Mueller 48bada5a18 Update pylint to 2.11.1 (#56364) 2021-09-18 13:52:59 +02:00
Paulus SchoutsenandMartin Hjelmare 952d11cb03 Ensure internal/external URL have no path (#54304)
* Ensure internal/external URL have no path

* Fix comment typo

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-09 09:38:09 +02:00
Marc Mueller 10bfc78365 Fix missing encoding with open() (#53593)
* Fix missing encoding with open()

* Fix tests

* Improve open - frontend
2021-07-28 09:41:45 +02:00
Franck NijhofandPaulus Schoutsen 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
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
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
Bram Kragten 4d939486a9 Fix updating owner user/auth (#50087)
Check if `is_active` is in update msg
2021-05-04 14:26:48 -07:00
Bram KragtenandPaulus Schoutsen 301d4b0657 Fix saving a scene (#49980)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-05-02 22:11:57 -07:00
Franck NijhofandJoakim Sørensen 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
Franck NijhofandPaulus Schoutsen 89e7983ee0 Add Blueprint foundation to Scripts (#48621)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-04-27 15:15:38 -07:00
Bram Kragten 9e7d83b2d5 Don't combine old and new value on scene update (#49248) 2021-04-26 23:38:30 +02:00
Ville SkyttäandJ. Nick Koston 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