hass-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
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
util Bump pyupgrade to 2.12.0 (#48943) 2021-04-09 09:58:27 -07:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Fix subscribe_bootstrap_integrations to send events (#48754) 2021-04-08 07:30:33 -10:00
config.py
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
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
setup.py Add TTS engines in config.components (#48939) 2021-04-09 16:13:07 -07:00
strings.json