Fix some sensor classes (#48254)

* Fix some sensor classes

* Tweak

* Tweak
This commit is contained in:
Erik Montnemery 2021-03-23 15:56:33 +01:00 committed by GitHub
parent 6932cf9534
commit a09c8eecb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 88 additions and 61 deletions

View file

@ -54,11 +54,6 @@ class OneWireBaseEntity(Entity):
"""Return the class of this device."""
return self._device_class
@property
def unit_of_measurement(self) -> str | None:
"""Return the unit the value is expressed in."""
return self._unit_of_measurement
@property
def extra_state_attributes(self) -> dict[str, Any] | None:
"""Return the state attributes of the entity."""