Revert 'Use STATE_UNKNOWN constant in dlink and ecobee' (#40022)

This commit is contained in:
springstan authored and GitHub committed 2020-09-13 17:11:24 +02:00
1 parent f3d50e2104
commit fc1fb0ab7c
2 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ from homeassistant.const import (
DEVICE_CLASS_HUMIDITY,
DEVICE_CLASS_TEMPERATURE,
PERCENTAGE,
STATE_UNKNOWN,
TEMP_FAHRENHEIT,
)
from homeassistant.helpers.entity import Entity
@@ -112,7 +111,7 @@ class EcobeeSensor(Entity):
if self._state in [
ECOBEE_STATE_CALIBRATING,
ECOBEE_STATE_UNKNOWN,
STATE_UNKNOWN,
"unknown",
]:
return None