From a174a06e5c48d443e310b0334113403395647e01 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 4 Jan 2016 19:25:52 +0100 Subject: [PATCH] No need to call update() here This also fixes a problem where the sensor is left uninitialized when the energy meter temporarily has lost connection with the hub. This caused the ELIQ Online server to return HTTP error 400: "user have no current power data", which in turn caused the used eliq library to fail during JSON parsing (issue reported). --- homeassistant/components/sensor/eliqonline.py | 1 - 1 file changed, 1 deletion(-) diff --git a/homeassistant/components/sensor/eliqonline.py b/homeassistant/components/sensor/eliqonline.py index 151b679b10e..891144c4b5f 100644 --- a/homeassistant/components/sensor/eliqonline.py +++ b/homeassistant/components/sensor/eliqonline.py @@ -46,7 +46,6 @@ class EliqSensor(Entity): self.api = api self.channel_id = channel_id - self.update() @property def name(self):