core/homeassistant
Álvaro Fernández Rojas 5bc0e9a50f
Fix aemet temperatures with a value of 0 (#47680)
* aemet: catch TypeError exceptions

format_float() and format_int() should also catch possible TypeError
exceptions.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: correctly parse temperatures with a value of 0

Right now, when a temperature with a value of 0 is provided by the API, the if
condition isn't satisfied, return None instead of 0.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

* aemet: group format int/float exceptions

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2021-03-10 10:25:04 +01:00
..
auth Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
components Fix aemet temperatures with a value of 0 (#47680) 2021-03-10 10:25:04 +01:00
generated Remove griddy integration (#47218) 2021-03-01 10:35:23 +01:00
helpers Add support for breakpoints in scripts (#47632) 2021-03-09 21:23:11 -08:00
scripts Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
util Add type hints to LightEntity (#47024) 2021-03-08 21:21:45 +01:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
config.py Clean up secret loading (#47034) 2021-03-02 12:58:53 -08:00
config_entries.py Config flow to allow marking itself as confirm only (#47607) 2021-03-08 10:54:51 -08:00
const.py Add device classes for CO and CO2 measurements (#47487) 2021-03-07 00:52:43 +01:00
core.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
data_entry_flow.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
exceptions.py Lint suppression cleanups (#47248) 2021-03-02 09:02:04 +01:00
loader.py Fix flip-flopped substitutions in Custom Version Type Warning message. (#46768) 2021-02-19 03:00:14 +01:00
package_constraints.txt Upgrade aiohttp to 3.7.4.post0 (#47627) 2021-03-08 23:18:55 +01:00
requirements.py
runner.py
setup.py
strings.json