Restore missing device_class to template binary_sensor (#39805)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-09-08 17:12:23 +02:00
1 parent 0507ec9d8b
commit 4bbd69955b
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