Add sensor class to bloomsky binary_sensor

This commit is contained in:
Paulus Schoutsen committed 2016-02-20 00:08:02 -08:00
1 parent fb9d8c79b5
commit 8a1fa82205
2 files changed
+6 -1

No files matched your search

@@ -64,7 +64,7 @@ class BinarySensorDevice(Entity):
@property
def sensor_class(self):
"""Return the class of this sensor, from SENSOR_CASSES."""
"""Return the class of this sensor, from SENSOR_CLASSES."""
return None
@property
@@ -56,6 +56,11 @@ class BloomSkySensor(BinarySensorDevice):
"""Unique ID for this sensor."""
return self._unique_id
@property
def sensor_class(self):
"""Return the class of this sensor, from SENSOR_CLASSES."""
return SENSOR_TYPES.get(self._sensor_name)
@property
def is_on(self):
"""If binary sensor is on."""