Convert openweathermap dewpoint from kelvin to celcius (#51893)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Fabian Zimmermann 2021-06-28 11:35:33 +02:00 committed by GitHub
parent ab73ce00a0
commit 3c0a24db50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -187,6 +187,7 @@ def _create_mocked_owm(is_api_online: bool):
weather.snow.return_value = []
weather.detailed_status.return_value = "status"
weather.weather_code = 803
weather.dewpoint = 10
mocked_owm.weather_at_coords.return_value.weather = weather