From ec0c3c2f0ab28b2d45f41eb816cbbea536273395 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 20 Mar 2022 14:35:39 -1000 Subject: [PATCH] Pass the `no_attributes` flag when they are not needed - Reduces backend I/O by up to 90% - See related PR https://github.com/home-assistant/frontend/pull/12082 - See related PR https://github.com/home-assistant/developers.home-assistant/pull/1242 --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 79d4566..020ae6d 100755 --- a/src/main.js +++ b/src/main.js @@ -950,7 +950,7 @@ class MiniGraphCard extends LitElement { url += `?filter_entity_id=${entityId}`; if (end) url += `&end_time=${end.toISOString()}`; if (skipInitialState) url += '&skip_initial_state'; - if (!withAttributes) url += '&minimal_response'; + if (!withAttributes) url += '&minimal_response&no_attributes'; if (withAttributes) url += '&significant_changes_only=0'; return this._hass.callApi('GET', url); }