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. |
||
---|---|---|
.. | ||
auth | ||
components | ||
generated | ||
helpers | ||
scripts | ||
util | ||
__init__.py | ||
__main__.py | ||
block_async_io.py | ||
bootstrap.py | ||
config.py | ||
config_entries.py | ||
const.py | ||
core.py | ||
data_entry_flow.py | ||
exceptions.py | ||
loader.py | ||
package_constraints.txt | ||
requirements.py | ||
runner.py | ||
setup.py | ||
strings.json |