Commit graph

183 commits

Author SHA1 Message Date
Erik Montnemery
2e228b2608
Tweak handling of entities with has_entity_name set ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-07-11 15:10:53 -07:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum () 2022-07-07 19:57:36 +03:00
J. Nick Koston
ce35324e73
Cache the response from config/entity_registry/list () 2022-07-05 21:11:51 -07:00
J. Nick Koston
3875fc5953
Cache the response from config/device_registry/list () 2022-07-05 21:08:39 -07:00
Erik Montnemery
26a85c6644
Add Entity.has_entity_name attribute () 2022-06-28 09:38:05 -07:00
J. Nick Koston
adf0f62963
Add websocket api to fetch config entries ()
* Add websocket api to fetch config entries

* add coverage for failure case
2022-06-21 20:09:22 +02:00
Franck Nijhof
bfb47eb212
Final clean up of helpers accessed via hass ()
* Final clean up of helpers accessed via hass

* Fix circular dep

* Fix import
2022-05-17 23:42:37 +03:00
Erik Montnemery
546ba8169d
Remove entity registry entries when script is removed () 2022-05-02 13:15:19 +02:00
Erik Montnemery
91f6e58e9a
Allow customizing unit for temperature and pressure sensors ()
* 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 () 2022-03-20 20:38:13 -07:00
Erik Montnemery
cf4033b1bc
Simplify time zone setting in tests ()
* Simplify timezone setting in tests

* Fix typo

* Adjust caldav tests

* Adjust input_datetime tests

* Adjust time_date tests

* Adjust tod tests

* Adjust helper tests

* Adjust recorder tests

* Adjust risco tests

* Adjust aemet tests

* Adjust flux tests

* Adjust forecast_solar tests

* Revert unnecessary change in forecast_solar test

* Adjust climacell tests

* Adjust google tests

* Adjust sensor tests

* Adjust sonarr tests

* Adjust template tests

* Adjust zodiac tests

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-03-20 10:25:15 +01:00
Franck Nijhof
2686be921c
Remove deprecated (old) Z-Wave integration ()
* Remove deprecated (old) Z-Wave integration

* Mark migration tests as skip, for later cleanup
2022-03-18 13:09:10 +01:00
Erik Montnemery
f134219c74
Minor tweak of config entity_registry test () 2022-03-14 23:07:52 +01:00
Erik Montnemery
314175135f
Hide switch_as_x tracked entity ()
* 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 () 2022-03-04 16:42:02 +01:00
J. Nick Koston
9a5eec561a
Only set require_restart on config entry reload if its not recoverable () 2022-02-21 10:27:23 -08:00
Erik Montnemery
c496748125
Add WS API for removing a config entry from a device ()
* 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 () 2022-02-07 11:15:04 +01:00
Erik Montnemery
0eb2caabcf
Report unmet dependencies for failing config flows ()
* 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 () 2022-02-01 09:45:08 -08:00
Erik Montnemery
55ff1e9c1d
Revert "Allow setting entity options with config/entity_registry/update" () 2022-01-23 21:07:12 -08:00
Paulus Schoutsen
63f8e437ed
Add Home Assistant Content user () 2022-01-21 10:06:39 -08:00
Erik Montnemery
3575009330
Store remote domain in Cloud preferences () 2022-01-21 09:42:34 -08:00
Erik Montnemery
c60bb1890d
Remove unused group config view () 2022-01-05 12:16:11 +01:00
J. Nick Koston
04153c0075
Add hardware version to the device registry () 2021-12-16 05:16:19 -06:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler () 2021-12-15 23:25:40 +02:00
Ville Skyttä
7db3246de4
Make config entry disabled_by an enum ()
* 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 ()
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 () 2021-12-03 16:34:26 +01:00
Ville Skyttä
9f4de8df18
Make device entry disabled by an enum () 2021-11-24 22:32:16 +01:00
J. Nick Koston
af51aeb6dc
Show how user input is malformed in the UI on error () 2021-11-23 22:50:54 +01:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too () 2021-11-23 10:04:33 +01:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class () 2021-11-22 08:38:06 -08:00
Franck Nijhof
8b30cb509f
Cleanup customize API endpoint () 2021-11-22 12:01:56 +01:00
Erik Montnemery
0df2904b89
Improve some entity registry tests () 2021-11-22 10:24:37 +01:00
J. Nick Koston
ebb25ab0e6
Make yaml file writes safer () 2021-11-10 22:19:56 -08:00
Paulus Schoutsen
f51e1fcb67
Check for uncaught service not found exceptions () 2021-11-01 14:33:09 +01:00
Paulus Schoutsen
6cd83d1f66
Allow storing picture in area registry () 2021-10-27 10:11:05 -07:00
Ville Skyttä
73d192b3f3
Use HTTPStatus instead of HTTP_ consts and magic values in comp.../[bc]* () 2021-10-22 19:43:40 +02:00
Erik Montnemery
e27e4c3561
Add support for device configuration URL ()
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-10-14 11:16:56 -07:00
Erik Montnemery
4b3d423767
Add config and diagnostic entities ()
* 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 ()
* 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 ()
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 () 2021-07-27 21:05:16 -07:00
Ville Skyttä
470f2dd73f
Upgrade pyupgrade to 2.21.2, apply its changes () 2021-07-19 10:46:09 +02:00
Paulus Schoutsen
ee2c950716
Merge system options into pref properties ()
* 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 () 2021-05-31 15:36:40 -07:00
Joakim Sørensen
7ff14b47a8
Use whoami for location lookup () 2021-05-22 20:34:48 -07:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ()
* 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 () 2021-05-17 15:48:41 +02:00