Add device_class to image_processing (#6186)
* Add image_processing device_class * Fix comments * address comments
This commit is contained in:
1 parent
b725eaf67f
commit
1cd1facbd0
3 files changed
+15
No files matched your search
@@ -94,6 +94,11 @@ class ImageProcessingAlprEntity(ImageProcessingEntity):
|
||||
plate = i_pl
|
||||
return plate
|
||||
|
||||
@property
|
||||
def device_class(self):
|
||||
"""Return the class of this device, from component DEVICE_CLASSES."""
|
||||
return 'alpr'
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
"""Return device specific state attributes."""
|
||||
|
||||
Reference in new issue
Block a user