Calculate temperature precision based on user units (#59560)
* Calculate temperature precision based on user units * Fix a few more failing tests * Fix failing test Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
parent
8b04c676ac
commit
c4a2204cc7
5 changed files with 65 additions and 63 deletions
|
@ -157,7 +157,9 @@ EXPECTED_FORECAST_IMPERIAL = {
|
|||
EXPECTED_FORECAST_METRIC = {
|
||||
ATTR_FORECAST_CONDITION: ATTR_CONDITION_LIGHTNING_RAINY,
|
||||
ATTR_FORECAST_TIME: "2019-08-12T20:00:00-04:00",
|
||||
ATTR_FORECAST_TEMP: round(convert_temperature(10, TEMP_FAHRENHEIT, TEMP_CELSIUS)),
|
||||
ATTR_FORECAST_TEMP: round(
|
||||
convert_temperature(10, TEMP_FAHRENHEIT, TEMP_CELSIUS), 1
|
||||
),
|
||||
ATTR_FORECAST_WIND_SPEED: round(
|
||||
convert_speed(10, SPEED_MILES_PER_HOUR, SPEED_KILOMETERS_PER_HOUR)
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue