Restore unit_of_measurement from entity registry (#30780)

* Restore unit_of_measurement from entity registry

* Lint fix
This commit is contained in:
Jc2k authored and Franck Nijhof committed 2020-01-15 20:17:42 +01:00
1 parent 3fd14ca3cf
commit 1a6535ff8b
5 files changed
+55

No files matched your search

+5
View File
@@ -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."""