From 76a0763cbc9af613278c98a7039196c21a82a81a Mon Sep 17 00:00:00 2001
From: Fabian Affolter <mail@fabian-affolter.ch>
Date: Mon, 23 Oct 2017 13:12:14 +0200
Subject: [PATCH] Remove STATE_UNKNOWN (#10064)

---
 homeassistant/components/sensor/glances.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/homeassistant/components/sensor/glances.py b/homeassistant/components/sensor/glances.py
index 831f6ca89d8..b61b7abeae3 100644
--- a/homeassistant/components/sensor/glances.py
+++ b/homeassistant/components/sensor/glances.py
@@ -13,8 +13,7 @@ import voluptuous as vol
 import homeassistant.helpers.config_validation as cv
 from homeassistant.components.sensor import PLATFORM_SCHEMA
 from homeassistant.const import (
-    CONF_HOST, CONF_PORT, STATE_UNKNOWN, CONF_NAME, CONF_RESOURCES,
-    TEMP_CELSIUS)
+    CONF_HOST, CONF_PORT, CONF_NAME, CONF_RESOURCES, TEMP_CELSIUS)
 from homeassistant.helpers.entity import Entity
 from homeassistant.util import Throttle
 
@@ -81,7 +80,7 @@ class GlancesSensor(Entity):
         self.rest = rest
         self._name = name
         self.type = sensor_type
-        self._state = STATE_UNKNOWN
+        self._state = None
         self._unit_of_measurement = SENSOR_TYPES[sensor_type][1]
 
     @property
@@ -164,7 +163,7 @@ class GlancesData(object):
     def __init__(self, resource):
         """Initialize the data object."""
         self._resource = resource
-        self.data = dict()
+        self.data = {}
 
     @Throttle(MIN_TIME_BETWEEN_UPDATES)
     def update(self):
-- 
GitLab