Correct misleading comment in SensorEntity

pull/67817/head
Erik Montnemery 2022-04-04 17:10:17 +02:00 committed by GitHub
parent 82af314678
commit bfa364741b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
homeassistant/components/sensor

View File

@ -428,7 +428,7 @@ class SensorEntity(Entity):
prec = len(value_s) - value_s.index(".") - 1 if "." in value_s else 0
# Scale the precision when converting to a larger unit
# For example 1.1 kWh should be rendered as 0.0011 kWh, not 0.0 kWh
# For example 1.1 Wh should be rendered as 0.0011 kWh, not 0.0 kWh
ratio_log = max(
0,
log10(