From 91cedc9cba254b84a683d7701484880ed4e75a13 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 13 Sep 2023 10:11:01 +0200 Subject: [PATCH] Add blog post about changes in WS command entity/source (#1904) * Add blog post about changes in WS command entity/source * Add example --- .../2023-09-12-ws-entity-source-simplified.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 blog/2023-09-12-ws-entity-source-simplified.md diff --git a/blog/2023-09-12-ws-entity-source-simplified.md b/blog/2023-09-12-ws-entity-source-simplified.md new file mode 100644 index 00000000..b41e26b7 --- /dev/null +++ b/blog/2023-09-12-ws-entity-source-simplified.md @@ -0,0 +1,41 @@ +--- +author: Erik Montnémery +authorURL: https://github.com/emontnemery +title: "The websocket command entity/source has been modified" +--- + +The websocket command `entity/source` has been greatly simplified: +- It's no longer possible to get information for a single entity +- Only the domain of the entities is included in the response, `custom_component`, `config_entry` and `source` are no longer present. + +### New response example +```json +{ + "light.entity_1": { + "domain": "template", + }, + "switch.entity_2": { + "domain": "shelly", + }, +} +``` + +### Old response example +```json +{ + "light.entity_1": { + "custom_component": false, + "domain": "template", + "source": "platform_config", + }, + "switch.entity_2": { + "custom_component": false, + "config_entry": "", + "domain": "shelly", + "source": "config_entry", + }, +} +``` + + +The change was introduced in [core PR#99439](https://github.com/home-assistant/core/pull/99439)