Restore unit_of_measurement from entity registry (#30780)
* Restore unit_of_measurement from entity registry * Lint fix
This commit is contained in:
1 parent
3fd14ca3cf
commit
1a6535ff8b
5 files changed
+55
No files matched your search
@@ -922,6 +922,11 @@ class MockEntity(entity.Entity):
|
||||
"""Info how device should be classified."""
|
||||
return self._handle("device_class")
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Info on the units the entity state is in."""
|
||||
return self._handle("unit_of_measurement")
|
||||
|
||||
@property
|
||||
def capability_attributes(self):
|
||||
"""Info about capabilities."""
|
||||
|
||||
Reference in new issue
Block a user