From cb8517834ace568f6d851b4c66a4fd48362119b4 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@fabian-affolter.ch>
Date: Sun, 6 Aug 2017 10:03:09 +0200
Subject: [PATCH] Do not call update() in constructor. (#8837)

---
 homeassistant/components/sensor/systemmonitor.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/homeassistant/components/sensor/systemmonitor.py b/homeassistant/components/sensor/systemmonitor.py
index fee12c31acf..42229351fde 100755
--- a/homeassistant/components/sensor/systemmonitor.py
+++ b/homeassistant/components/sensor/systemmonitor.py
@@ -75,7 +75,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
             resource['arg'] = ''
         dev.append(SystemMonitorSensor(resource[CONF_TYPE], resource['arg']))
 
-    add_devices(dev)
+    add_devices(dev, True)
 
 
 class SystemMonitorSensor(Entity):
@@ -88,7 +88,6 @@ class SystemMonitorSensor(Entity):
         self.type = sensor_type
         self._state = None
         self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
-        self.update()
 
     @property
     def name(self):
-- 
GitLab