Remove deprecated sensor_class config options (#8702)

This commit is contained in:
Adam Mills
2017-07-29 19:46:27 -04:00
committed by GitHub
parent 8ba9e8016b
commit 8ac63fd70c
12 changed files with 21 additions and 42 deletions

View File

@@ -28,7 +28,7 @@ CONF_PING_COUNT = 'count'
DEFAULT_NAME = 'Ping Binary sensor'
DEFAULT_PING_COUNT = 5
DEFAULT_SENSOR_CLASS = 'connectivity'
DEFAULT_DEVICE_CLASS = 'connectivity'
SCAN_INTERVAL = timedelta(minutes=5)
@@ -73,7 +73,7 @@ class PingBinarySensor(BinarySensorDevice):
@property
def device_class(self):
"""Return the class of this sensor."""
return DEFAULT_SENSOR_CLASS
return DEFAULT_DEVICE_CLASS
@property
def is_on(self):