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
Erik Montnemery
c38b1e7727
Improve check of new_entity_id in entity_registry.async_update_entity ( #78276 )
...
* Improve check of new_entity_id in entity_registry.async_update_entity
* Fix race in rfxtrx config flow
* Make sure Event is created on time
* Rename poorly named variable
* Fix typing
* Correct typing of _handle_state_change
2022-09-28 08:43:58 +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
epenet
13f250319d
Import websocket api constants from root ( #78250 )
2022-09-12 22:07:58 -04:00
Erik Montnemery
d65eaf11f4
Include entity registry id in entity registry WS API ( #77668 )
2022-09-01 11:51:27 -04: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
J. Nick Koston
810b2a2bd6
Inline building entity registry dict ( #74378 )
2022-07-04 00:36:42 -05: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
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
83a10cca53
Enable basic type checking for config ( #66197 )
2022-02-09 19:09:55 +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
Erik Montnemery
3b7448bb1c
Import websocket_api (part 2) ( #63906 )
2022-01-11 17:26:25 +01:00
Franck Nijhof
66c7387111
Fix str for device registry entry_type warnings caused by core ( #60989 )
2021-12-04 07:46:42 -05:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class ( #59985 )
2021-11-22 08:38:06 -08: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
Marc Mueller
2b72b7b7b9
Use assignment expressions 09 ( #57790 )
2021-10-17 20:19:56 +02: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
Philip Allgaier
89fc92f68a
Slightly improve error message in case of duplicate entity IDs ( #45424 )
2021-01-22 09:16:13 -05: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
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
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
22ab5a498f
Change how we import config modules ( #21824 )
2019-03-08 14:09:18 -08:00
Paulus Schoutsen
8062f48973
Add remove commmand to entity registry ( #20597 )
2019-01-30 09:50:32 -08:00
Glen Takahashi
b031ded671
Fix not being able to update entities ( #19344 )
...
When editing an entity in the frontend dialog, pressing save causes a "save failed: Entity is already registered" error. This is because the frontend always sets `name` and `new_entity_id` in the websocket command even if they haven't been changed. This adds a check that the `new_entity_id` is actually different from `entity_id` before erroring that the `new_entity_id` is already registered.
2018-12-16 13:06:27 -05:00
Erik
d03dfd985b
Review comments
2018-12-12 16:30:42 +01:00
Erik
c7492b0feb
Move check to websocket
2018-12-11 20:20:57 +01:00
Erik
1f8156e26c
Fail if new entity_id is in hass.states
2018-12-11 17:17:42 +01:00
Paulus Schoutsen
2e6346ca43
Break up websocket 2 ( #17028 )
...
* Break up websocket 2
* Lint+Test
* Lintttt
* Rename
2018-10-01 16:09:31 +02:00
Paulus Schoutsen
22a80cf733
Break up websocket component ( #17003 )
...
* Break up websocket component
* Lint
2018-10-01 11:21:00 +02: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
Ville Skyttä
dd9d53c83e
Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0 ( #14557 )
...
* Update pydocstyle to 2.1.1 and flake8-docstrings to 1.3.0
* Pydocstyle D401 fixes
2018-08-24 10:28:43 +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
6d431c3fc3
Allow renaming entities in entity registry ( #12636 )
...
* Allow renaming entities in entity registry
* Lint
2018-02-24 10:53:59 -08:00