Commit Graph

220 Commits

Author SHA1 Message Date
Bram Kragten
89daf4f96b Handle config entries of integrations that are removed (#68928) 2022-03-30 14:35:12 -07:00
Erik Montnemery
91f6e58e9a Allow customizing unit for temperature and pressure sensors (#64366)
* Allow customizing unit for temperature and pressure sensors

* pylint

* Adjust google_wifi tests

* Address review comments and add tests

* Improve rounding when scaling

* Tweak rounding

* Further tweak rounding

* Allow setting entity options with config/entity_registry/update

* Address review comments

* Tweak tests

* Load custom unit when sensor is added

* Override async_internal_added_to_hass

* Adjust tests after rebase

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Address review comments

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-30 15:43:04 +02:00
Paulus Schoutsen
3213091b8d Add integration type (#68349) 2022-03-20 20:38:13 -07:00
Franck Nijhof
2686be921c Remove deprecated (old) Z-Wave integration (#67221)
* Remove deprecated (old) Z-Wave integration

* Mark migration tests as skip, for later cleanup
2022-03-18 13:09:10 +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
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
Marc Mueller
45d8d04c40 Use assignment expressions [other] (#66882) 2022-02-19 17:22:51 +01:00
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
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
Erik Montnemery
3575009330 Store remote domain in Cloud preferences (#64532) 2022-01-21 09:42:34 -08:00
epenet
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
epenet
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ä
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
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 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
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 Schoutsen
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 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
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