core/homeassistant
Phil Hollenback e38fce98c4
Fix non-metric atmospheric pressure in Open Weather Map (#49030)
The openweathermap component retrieves atmospheric pressure from the
openweathermap api and passes it along without checking the units.
The api returns pressure in metric (hPa).  If you the use the weather
forecast card on a non-metric home assistant install, you will then
see the pressure reported as something like '1019 inHg', which is an
incorrect combination of metric value and non-metric label.

To fix this, check when retrieving the pressure if this is a metric
system.  If not, convert the value to non-metric inHg before sending
it along.

Weirdly, this isn't a problem for temperature, so I suspect temp is
getting converted somewhere else.
2021-04-11 11:13:07 +02:00
..
auth Merge of nested IF-IF cases - Core (#48364) 2021-03-27 09:23:32 +01:00
components Fix non-metric atmospheric pressure in Open Weather Map (#49030) 2021-04-11 11:13:07 +02:00
generated Update Ezviz Component (#45722) 2021-04-09 12:39:19 +02:00
helpers Add helper to get an entity's supported features (#48825) 2021-04-10 08:19:16 +02:00
scripts Bump colorlog to 4.8.0 (#48218) 2021-03-22 13:10:01 +01:00
util Bump pyupgrade to 2.12.0 (#48943) 2021-04-09 09:58:27 -07:00
__init__.py
__main__.py Update typing 01 (#48013) 2021-03-17 17:34:55 +01:00
block_async_io.py
bootstrap.py Fix subscribe_bootstrap_integrations to send events (#48754) 2021-04-08 07:30:33 -10:00
config.py Update typing 01 (#48013) 2021-03-17 17:34:55 +01:00
config_entries.py Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00
const.py Raise an exception when event_type exceeds the max length (#48115) 2021-04-08 20:46:28 +02:00
core.py Raise an exception when event_type exceeds the max length (#48115) 2021-04-08 20:46:28 +02:00
data_entry_flow.py Fix device discovery of OAuth2 config flows (#48326) 2021-03-25 10:35:01 -07:00
exceptions.py Raise ConfigEntryAuthFailed during setup or coordinator update to start reauth (#48962) 2021-04-09 19:41:29 -10:00
loader.py Add target version to log about missing version (#48520) 2021-03-31 01:08:59 +02:00
package_constraints.txt Bump hass-nabucasa 0.43 (#48964) 2021-04-09 13:43:38 -07:00
requirements.py Only raise integrationnotfound for dependencies (#48241) 2021-04-01 11:30:52 -07:00
runner.py Update typing 01 (#48013) 2021-03-17 17:34:55 +01:00
setup.py Add TTS engines in config.components (#48939) 2021-04-09 16:13:07 -07:00
strings.json Add missing oauth2 error abort reason (#48112) 2021-03-19 14:27:26 +01:00