Change STATE_UNKOWN to None (#20337)

* Change STATE_UNKOWN to None

* Change STATE_UNKOWN to None

* tests

* tests

* tests

* tests

* tests

* style

* fix comments

* fix comments

* update fan test
This commit is contained in:
Daniel Høyer Iversen authored and Martin Hjelmare committed 2019-01-24 08:20:20 +01:00
1 parent 074fcd96ed
commit 1bd31e3459
64 files changed
+147 -168

No files matched your search

+2 -3
View File
@@ -14,8 +14,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_NAME, ATTR_ATTRIBUTION, STATE_UNKNOWN
)
CONF_NAME, ATTR_ATTRIBUTION)
REQUIREMENTS = ['PyMVGLive==1.1.4']
@@ -87,7 +86,7 @@ class MVGLiveSensor(Entity):
self._name = name
self.data = MVGLiveData(station, destinations, directions,
lines, products, timeoffset, number)
self._state = STATE_UNKNOWN
self._state = None
self._icon = ICONS['-']
@property