Erik Montnemery
1f34fa63ab
Always include platform in `config/entity_registry/list_for_display` ( #88601 )
...
Always include platform in config/entity_registry/list_for_display
2023-02-22 17:59:52 +01:00
Erik Montnemery
0c4c95394e
Add WS command config/entity_registry/list_for_display ( #87787 )
...
* Add WS command config/entity_registry/list_for_display
* Make more keys in the display dict optional
* Move disabled_by check to ws command handler
* Hide hidden_by if not hidden
* Use send_json_auto_id in the new test
* Don't include entities which have no data needed for display
* Include platform for entries with translation_key
2023-02-21 20:40:39 +01:00
epenet
9f688a564f
Add type hints to integration tests (part 4) ( #87848 )
2023-02-11 08:26:13 +01:00
Erik Montnemery
93dafefd96
Include entity options in RegistryEntry.as_partial_dict ( #87539 )
2023-02-08 08:32:46 -05:00
Franck Nijhof
ef800335fb
Enable Ruff PT022 ( #86792 )
...
* Enable Ruff PT022
* Adjust found cases
2023-01-27 13:57:06 +01:00
Erik Montnemery
b933a53aa3
Refactor entity registry JSON cache ( #85085 )
...
* Refactor entity registry JSON cache
* Fix generator
* Tweak
* Improve string building
* Improve test coverage
* Override EntityRegistryItems.values to avoid __iter__ overhead
2023-01-09 16:52:52 +01:00
Erik Montnemery
377396ba16
Add WS endpoint config/entity_registry/get_entries ( #85063 )
2023-01-05 09:39:10 -05:00
Erik Montnemery
1f3da9cf1a
Add aliases to entity registry items ( #84239 )
2022-12-20 12:10:46 +01:00
Erik Montnemery
3884e16b46
Add tests.common.ANY ( #84240 )
2022-12-20 08:20:42 +01:00
Erik Montnemery
8e617bbc1d
Add `translation_key` property to entites ( #82701 )
...
* Add translation_key attribute to entity state
* Update accuweather test
* Index entity translation keys by platform
* Store translation key in entity registry
2022-12-01 09:34:09 +01:00
epenet
b23a66d776
Add websocket type hints in entity_registry ( #80657 )
...
* Add websocket type hints in entity_registry
* Adjust websocket_list_entities
* Fix update
* Fix websocket_update_entity
* Apply suggestion
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Apply suggestion
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-10-20 12:20:39 +02:00
Bram Kragten
7e9be812ca
Add unique id to entity reg list response ( #78945 )
...
* Add unique id to entity reg list response
* Update test_entity_registry.py
2022-09-27 08:25:56 +02:00
Erik Montnemery
d65eaf11f4
Include entity registry id in entity registry WS API ( #77668 )
2022-09-01 11:51:27 -04:00
Erik Montnemery
4655ed995e
Fix resetting of attributes in EntityRegistry.async_get_or_create ( #77516 )
...
* Fix resetting of attributes in EntityRegistry.async_get_or_create
* Fix typing
* Fix resetting config entry
* Improve test
* Update tests
2022-08-30 21:07:50 +02:00
Erik Montnemery
2e228b2608
Tweak handling of entities with `has_entity_name` set ( #74948 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-07-11 15:10:53 -07:00
J. Nick Koston
ce35324e73
Cache the response from config/entity_registry/list ( #74443 )
2022-07-05 21:11:51 -07:00
Erik Montnemery
26a85c6644
Add Entity.has_entity_name attribute ( #73217 )
2022-06-28 09:38:05 -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
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
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
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02: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
Erik Montnemery
0df2904b89
Improve some entity registry tests ( #59902 )
2021-11-22 10:24:37 +01: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ä
a396619251
Use disabled_by constants ( #49584 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
Erik Montnemery
30baf333c3
Improve handling of disabled devices ( #43864 )
2020-12-02 21:20:14 +01:00
Erik Montnemery
5694e4190c
Extend WS API result when enabling an entity ( #42667 )
...
* Extend WS API result when enabling an entity
* Fix tests
* Fix tests
* Move updated registry entry to sub dict
* Address review comments
* Increase test coverage
2020-11-09 19:47:45 +01:00
Robert Svensson
e06c8009e1
Add area id to entity registry ( #42221 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-24 21:25:28 +02:00
Ville Skyttä
5e90a4d000
Use more state attribute name constants ( #40428 )
2020-09-21 23:03:39 +02:00
Bram Kragten
fcaabb3d33
Change get_entity to return a extended entry, add inputs to de… ( #32083 )
...
* Change get_entity to return a extended entry + add inputs to default config
For https://github.com/home-assistant/home-assistant-polymer/pull/4940
* Fix tests, simplify code, update to return extended
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-02-22 15:18:10 -08:00
Paulus Schoutsen
51c35ab9a8
Entity Registry to store and restore name/icon ( #31714 )
...
* Entity Registry to store and restore name/icon
* Update test_entity_registry.py
* Add original name/icon to JSON result
2020-02-11 09:40:50 -08:00
Bas Nijholt
f355570f17
use isort to sort imports according to PEP8 for config ( #29628 )
2019-12-08 22:27:28 +05:30
Paulus Schoutsen
f704a8e90e
Reload config entry when entity enabled in entity registry, remove entity if disabled. ( #26120 )
...
* Reload config entry when disabled_by updated in entity registry
* Add types
* Remove entities that get disabled
* Remove unnecessary domain checks.
* Attach handler in async_setup
* Remove unused var
* Type
* Fix test
* Fix tests
2019-08-22 19:32:43 -05:00
Paulus Schoutsen
aa56b4dd30
Log warning if disabled entities receive updates. ( #26143 )
...
* Log warning if disabled entities receive updates.
* Fix test
* Always set entity ID on disabled entities
2019-08-22 14:12:24 -07:00
Paulus Schoutsen
eba6caf8a1
Entity registry api update disable ( #26015 )
...
* Clean up entity registry WS commands
* Allow updating disabled_by in entity registry
* Allow changing disabled_by via API
* Update tests/components/config/test_entity_registry.py
Co-Authored-By: Robert Svensson <Kane610@users.noreply.github.com>
2019-08-16 16:22:45 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Paulus Schoutsen
8062f48973
Add remove commmand to entity registry ( #20597 )
2019-01-30 09:50:32 -08:00
Paulus Schoutsen
05c0717167
Add websocket list APIs for the registries ( #16597 )
...
* Add websocket list APIs for the registries
* Remove identifiers
* Fix tests
* Use ordered dict
2018-09-14 11:57:18 +02:00
Paulus Schoutsen
d9cf8fcfe8
Allow changing entity ID ( #15637 )
...
* Allow changing entity ID
* Add support to websocket command
* Address comments
* Error handling
2018-07-24 14:12:53 +02:00
Paulus Schoutsen
a6880c452f
Migrate entity registry to using websocket ( #14830 )
...
* Migrate to using websocket
* Lint
2018-06-06 10:08:36 +02:00
Paulus Schoutsen
89a19c89a7
Fix aiohttp deprecation warnings ( #13240 )
...
* Fix aiohttp deprecation warnings
* Fix Ring deprecation warning
* Lint
2018-03-15 21:49:49 +01:00
Paulus Schoutsen
6d431c3fc3
Allow renaming entities in entity registry ( #12636 )
...
* Allow renaming entities in entity registry
* Lint
2018-02-24 10:53:59 -08:00