1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-29 21:21:46 +01:00

Move sensor rounding to frontend (#87330)

* Move sensor rounding to frontend

* Update integrations

* Add comment
This commit is contained in:
Erik Montnemery
2023-02-04 20:54:36 +01:00
committed by GitHub
parent ee6773236e
commit bcc1aa03b4
8 changed files with 231 additions and 307 deletions

View File

@@ -98,9 +98,9 @@ class MockSensor(MockEntity, SensorEntity):
return self._handle("last_reset")
@property
def native_precision(self):
def suggested_display_precision(self):
"""Return the number of digits after the decimal point."""
return self._handle("native_precision")
return self._handle("suggested_display_precision")
@property
def native_unit_of_measurement(self):