core/tests/components/aemet
Álvaro Fernández Rojas b72d64a3dc
Disable AEMET legacy options (#107795)
* aemet: disable legacy options

This enables proper timezone handling:
- Atlantic/Canary for the Canary Islands.
- Europe/Madrid for the Iberian Peninsula.

Also provides daily data for the current day after AEMET stops providing the
full day interval, which is normally after midday (12:00).
This is a breaking change because with the previous behaviour the daily data
for the current day wasn't available after midday and now it will be.
What the integration library does to workaround this is to fallback to the
12-24 interval data if the the 00-24 is no longer provided by the API.

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

* Fix AEMET tests with v0.4.8

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

---------

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-02-22 12:52:57 +01:00
..
fixtures Add wind gust to AEMET hourly forecasts (#99289) 2023-08-29 21:14:37 +02:00
snapshots Disable AEMET legacy options (#107795) 2024-02-22 12:52:57 +01:00
__init__.py
conftest.py Add missing mock in aemet config flow tests (#89360) 2023-03-08 10:18:44 -05:00
test_config_flow.py Use freezegun in AEMET tests (#99253) 2023-08-29 09:33:12 -05:00
test_coordinator.py Rename AEMET weather_update_coordinator (#107740) 2024-01-10 20:33:44 +01:00
test_init.py Update AEMET-OpenData to v0.4.6 (#102996) 2023-10-30 18:54:50 +01:00
test_sensor.py Disable AEMET legacy options (#107795) 2024-02-22 12:52:57 +01:00
test_weather.py Disable AEMET legacy options (#107795) 2024-02-22 12:52:57 +01:00
util.py Update AEMET-OpenData to v0.3.0 (#98810) 2023-08-22 23:21:42 +02:00