From 60ce57e7b0852ddb14ceb50573780a41f6cdc37a Mon Sep 17 00:00:00 2001 From: Johan Isacsson Date: Sun, 12 Sep 2021 23:18:41 +0200 Subject: [PATCH] All test pass, 100% coverage --- custom_components/myenergi/sensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/myenergi/sensor.py b/custom_components/myenergi/sensor.py index b207d55..1190e19 100644 --- a/custom_components/myenergi/sensor.py +++ b/custom_components/myenergi/sensor.py @@ -454,8 +454,7 @@ def name(self): @property def state(self): """Return the state of the sensor.""" - value = self.device.ct_groups.get(self.key, None) - return value + return self.device.ct_groups.get(self.key, None) @property def unit_of_measurement(self):