From 483af6c6b9f9ec182d7fa56b4ce7a59c7eb156c1 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Thu, 24 Oct 2024 12:09:53 +0200 Subject: [PATCH] Use the better balkon average --- src/back/routes/dashboard.sreact.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/back/routes/dashboard.sreact.tsx b/src/back/routes/dashboard.sreact.tsx index f1f96ca..b051945 100644 --- a/src/back/routes/dashboard.sreact.tsx +++ b/src/back/routes/dashboard.sreact.tsx @@ -9,8 +9,8 @@ export const actionName = "Dashboard"; //{"type":"call_service","domain":"automation","service":"trigger","service_data":{"entity_id":"automation.force_heating_at_20c_in_strych_for_1h","skip_condition":true},"id":41} const actions = { - activateStrychHeating: (state: State, inputs: Record) => { - call_service( + activateStrychHeating: (state: State) => { + void call_service( "automation", "trigger", "automation.force_heating_at_20c_in_strych_for_1h" @@ -56,7 +56,7 @@ export default new (class DashboardPage extends StatefulPage) { + async render() { const date = new Date(); return ( @@ -72,7 +72,11 @@ export default new (class DashboardPage extends StatefulPage {arrow("sensor.balkon_temperature_derivative")} - {with_unit(get_state("input_number.balkon_average"))} + {with_unit( + get_state( + "sensor.better_balkon_average_temperature" + ) + )}