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

@@ -97,7 +97,7 @@ class GoogleWifiSensor(Entity):
"""Initialize a Google Wifi sensor."""
self._api = api
self._name = name
self._state = STATE_UNKNOWN
self._state = None
variable_info = MONITORED_CONDITIONS[variable]
self._var_name = variable
@@ -135,7 +135,7 @@ class GoogleWifiSensor(Entity):
if self.available:
self._state = self._api.data[self._var_name]
else:
self._state = STATE_UNKNOWN
self._state = None
class GoogleWifiAPI: