* 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>