From 206e4f9513a4d960da21072db6a72437c2191a9e Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 23 Sep 2023 21:13:34 -0300 Subject: [PATCH] Fixed error with client name --- custom_components/ute/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ute/sensor.py b/custom_components/ute/sensor.py index 9ff5a46..c5c0896 100644 --- a/custom_components/ute/sensor.py +++ b/custom_components/ute/sensor.py @@ -59,5 +59,5 @@ class UTESensor(SensorEntity): self._name = "Current energy usage" def update(self): - ute_data = self.ute.get_current_usage_info() + ute_data = self.client.get_current_usage_info() self._attr_native_value = ute_data["data"]["power_in_watts"]