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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user