Restore missing device_class to template binary_sensor (#39805)

This commit is contained in:
J. Nick Koston authored and Paulus Schoutsen committed 2020-09-08 15:35:35 +00:00
1 parent fa07787007
commit f1de903fb5
2 files changed
+14 -2

No files matched your search

@@ -194,3 +194,8 @@ class BinarySensorTemplate(TemplateEntity, BinarySensorEntity):
def is_on(self):
"""Return true if sensor is on."""
return self._state
@property
def device_class(self):
"""Return the sensor class of the binary sensor."""
return self._device_class