From c4ee09ef464f3cd30ddefd8609cb3a81b2db00fb Mon Sep 17 00:00:00 2001 From: Troon Date: Mon, 13 Jul 2020 13:22:08 +0100 Subject: [PATCH 1/3] Reworded section on pulling attributes from JSON (#13972) Improved English; original probably written by someone using second language which is far more impressive than me slightly tweaking it in my first language! --- source/_integrations/rest.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/rest.markdown b/source/_integrations/rest.markdown index c5e130b79a8..361f81dfb06 100644 --- a/source/_integrations/rest.markdown +++ b/source/_integrations/rest.markdown @@ -320,7 +320,7 @@ sensor: ``` {% endraw %} -This configuration shows how to extract multiple values from a dictionary with `json_attributes` and `template`. It helps you to avoid flooding the REST service and only ask once the results and separate them in multiple templates referring to it. (No need for a specific state on the REST sensor and it's default state will be the full JSON value which will be longer than the 255 max length. It's why we'll used a static value) +This configuration shows how to extract multiple values from a dictionary with `json_attributes` and `template`. This avoids flooding the REST service by only requesting the result once, then creating multiple attributes from that single result using templates. By default, the sensor state would be set to the full JSON — here, that would exceed the 255-character maximum allowed length for the state, so we override that default by using `value_template` to set a static value of `OK`. {% raw %} ```json From bfa52abae9a185a5a51f8ced03d54aa70562163e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2020 15:20:44 +0200 Subject: [PATCH 2/3] Bump multi_json from 1.14.1 to 1.15.0 (#13963) Bumps [multi_json](https://github.com/intridea/multi_json) from 1.14.1 to 1.15.0. - [Release notes](https://github.com/intridea/multi_json/releases) - [Changelog](https://github.com/intridea/multi_json/blob/master/CHANGELOG.md) - [Commits](https://github.com/intridea/multi_json/commits) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0ef88aeed09..5e4529468c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -70,7 +70,7 @@ GEM rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.4.0) mini_portile2 (2.4.0) - multi_json (1.14.1) + multi_json (1.15.0) mustermann (1.1.1) ruby2_keywords (~> 0.0.1) nokogiri (1.10.10) From 240121186d4d68144f73a4b12bafa72f89171a29 Mon Sep 17 00:00:00 2001 From: Massimiliano Cannarozzo Date: Mon, 13 Jul 2020 15:32:57 +0200 Subject: [PATCH 3/3] Fix doc style (#13958) Co-authored-by: Franck Nijhof --- source/_integrations/google_assistant.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_integrations/google_assistant.markdown b/source/_integrations/google_assistant.markdown index a72f6b17b7a..095487d682e 100644 --- a/source/_integrations/google_assistant.markdown +++ b/source/_integrations/google_assistant.markdown @@ -149,7 +149,7 @@ entity_config: required: false type: map keys: - '``': + YOUR_ENTITY_ID: description: Entity to configure required: false type: map