From 1e2c73f8107a24455ee0aa3ef5070180bc121004 Mon Sep 17 00:00:00 2001 From: jbruce12000 Date: Thu, 10 Jun 2021 11:17:43 -0400 Subject: [PATCH] sending kwh_rate and currency_type to the client for cost calculations --- lib/oven.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/oven.py b/lib/oven.py index 2d4c05a..35b7288 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -272,6 +272,8 @@ class Oven(threading.Thread): 'state': self.state, 'heat': self.heat, 'totaltime': self.totaltime, + 'kwh_rate': config.kwh_rate, + 'currency_type': config.currency_type, 'profile': self.profile.name if self.profile else None, } return state