From 44a52075ec6f178826b56adca5cd913fae388ebc Mon Sep 17 00:00:00 2001 From: Zack Date: Wed, 11 May 2022 10:20:28 -0500 Subject: [PATCH] Remove entity_matches_only --- src/data/logbook.ts | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/data/logbook.ts b/src/data/logbook.ts index 0ce969c3f4..32c77e6356 100644 --- a/src/data/logbook.ts +++ b/src/data/logbook.ts @@ -46,7 +46,6 @@ export const getLogbookDataForContext = async ( startDate, undefined, undefined, - undefined, contextId ) ); @@ -56,20 +55,13 @@ export const getLogbookData = async ( hass: HomeAssistant, startDate: string, endDate: string, - entityId?: string, - entity_matches_only?: boolean + entityId?: string ): Promise => { const localize = await hass.loadBackendTranslation("device_class"); return addLogbookMessage( hass, localize, - await getLogbookDataCache( - hass, - startDate, - endDate, - entityId, - entity_matches_only - ) + await getLogbookDataCache(hass, startDate, endDate, entityId) ); }; @@ -97,8 +89,7 @@ export const getLogbookDataCache = async ( hass: HomeAssistant, startDate: string, endDate: string, - entityId?: string, - entity_matches_only?: boolean + entityId?: string ) => { const ALL_ENTITIES = "*"; @@ -125,8 +116,7 @@ export const getLogbookDataCache = async ( hass, startDate, endDate, - entityId !== ALL_ENTITIES ? entityId : undefined, - entity_matches_only + entityId !== ALL_ENTITIES ? entityId : undefined ).then((entries) => entries.reverse()); return DATA_CACHE[cacheKey][entityId]; }; @@ -136,7 +126,6 @@ const getLogbookDataFromServer = async ( startDate: string, endDate?: string, entityId?: string, - entitymatchesOnly?: boolean, contextId?: string ) => { const params = new URLSearchParams(); @@ -147,9 +136,6 @@ const getLogbookDataFromServer = async ( if (entityId) { params.append("entity", entityId); } - if (entitymatchesOnly) { - params.append("entity_matches_only", ""); - } if (contextId) { params.append("context_id", contextId); }