This PR adds an additional option to display fractional hourly temperatures into their nearest whole number.
Behavior change:
By default, the existing default behavior is observed, where fractional temperatures are rendered if the weather entity is serving fractional temperatures.
When the round_temperatures: true is specified, the number served by weather entity is rounded to the nearest whole number using Math.round().
Tests
Tests have been modified, to include a fractional temperature in mock data.
This PR adds an additional option to display fractional hourly temperatures into their nearest whole number.
Behavior change:
By default, the existing default behavior is observed, where fractional temperatures are rendered if the weather entity is serving fractional temperatures.
When the
round_temperatures: true
is specified, the number served by weather entity is rounded to the nearest whole number using Math.round().Tests
Tests have been modified, to include a fractional temperature in mock data.