Commit Graph
11 Commits
Author SHA1 Message Date
J. Nick KostonandGitHub 5a609c34bb Fix blocking I/O in the event loop when loading timezones (#117721) 2024-05-20 11:06:03 +02:00
Álvaro Fernández RojasandGitHub 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 <[email protected]>

* Fix AEMET tests with v0.4.8

Signed-off-by: Álvaro Fernández Rojas <[email protected]>

---------

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
2024-02-22 12:52:57 +01:00
6a6c447c28 Use new AEMET library data for sensor platform (#102972)
Co-authored-by: Franck Nijhof <[email protected]>
Co-authored-by: Robert Resch <[email protected]>
2024-01-10 16:36:20 +01:00
Álvaro Fernández RojasandGitHub da13afbd3c Add missing AEMET wind gust speed (#100157) 2023-09-12 09:08:06 +02:00
Álvaro Fernández RojasandGitHub 9c65e59cc8 Remove AEMET daily precipitation sensor test (#100118) 2023-09-11 09:46:59 -05:00
Álvaro Fernández RojasandGitHub 2e0a22fdaf Use freezegun in AEMET tests (#99253) 2023-08-29 09:33:12 -05:00
epenetandGitHub 2545694d41 Add type hints to integration tests (a) (#87684)
* Add type hints to accuweather tests

* Adjust a** components

* Adjust aiohttp_client

* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
cf4033b1bc Simplify time zone setting in tests (#68330)
* Simplify timezone setting in tests

* Fix typo

* Adjust caldav tests

* Adjust input_datetime tests

* Adjust time_date tests

* Adjust tod tests

* Adjust helper tests

* Adjust recorder tests

* Adjust risco tests

* Adjust aemet tests

* Adjust flux tests

* Adjust forecast_solar tests

* Revert unnecessary change in forecast_solar test

* Adjust climacell tests

* Adjust google tests

* Adjust sensor tests

* Adjust sonarr tests

* Adjust template tests

* Adjust zodiac tests

Co-authored-by: Martin Hjelmare <[email protected]>
2022-03-20 10:25:15 +01:00
Álvaro Fernández RojasandGitHub 2c61c0f258 Fix AEMET town timestamp format (#48647)
Datetime should be converted to ISO format.

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
2021-04-03 11:17:17 +02:00
Diogo GomesandGitHub d3bd2378ba Correct weather entities forecast time (#47565) 2021-03-07 16:07:02 +01:00
eecf07d7df Add AEMET OpenData integration (#45074)
Co-authored-by: Martin Hjelmare <[email protected]>
2021-02-13 21:53:28 +01:00