Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use display_precision if suggested_display_precision is None #110270

Merged
merged 8 commits into from
Apr 24, 2024
Prev Previous commit
Next Next commit
Update __init__.py
  • Loading branch information
emontnemery authored Apr 23, 2024
commit 492c517116d54bc327d79f593fec92e47799b2fd
2 changes: 1 addition & 1 deletion homeassistant/components/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ def _async_read_entity_options(self) -> None:
Called when the entity registry entry has been updated and before the sensor is
added to the state machine.
"""
self._sensor_option_display_precision = self._suggested_precision_or_none()
self._sensor_option_display_precision = self._display_precision_or_none()
assert self.registry_entry
if (
sensor_options := self.registry_entry.options.get(f"{DOMAIN}.private")
Expand Down
Loading