Oncleben31
6b85e23408
Refactor Météo-France to use API instead of web scraping ( #37737 )
...
* Add new python library
* Update requirements
* Remove old libs
* config flow with client.search_places
* WIP: UI config + weather OK
* WIP: sensors
* WIP: add pressure to weather + available to sensor
* WIP: coordinator next_rain + alert
* Make import step working
* migrate to meteofrance-api v0.0.3
* Create coordinator for rain only if data available in API
* Fix avoid creation of rain sensor when not available.
* Add options flow for forecast mode
* Fix import config causing bug with UI
* Add alert sensor
* Add coastal alerts when available (#5 )
* Use meteofrance-api feature branch on Github
* Update unit of next_rain sensor
* Test different type of attibutes
* Typo for attribute
* Next rain sensor device class as timestamp
* Better design for rain entity attributes
* use master branch for meteofrance-api
* time displayed in the HA server timezone.
* fix bug when next_rain_date_locale is None
* Add precipitation and cloud cover sensors
* Add variable to avoid repeating computing
* Apply suggestions from code review
Co-authored-by: Quentame <polletquentin74@me.com >
* Attributes names in const.
* Cleaning
* Cleaning: use current_forecast and today_forecast
* Write state to HA after fetch
* Refactor, Log messages and bug fix. (#6 )
* Add messages in log
* Refactor using 'current_forecast'.
* Use % string format with _LOGGER
* Remove inconsistent path
* Secure timestamp value and get current day forecast
* new unique_id
* Change Log message to debug
* Log messages improvement
* Don't try to create weather alert sensor if not in covered zone.
* convert wind speed in km/h
* Better list of city in config_flow
* Manage initial CONF_MODE as None
* Review correction
* Review coorections
* unique id correction
* Migrate from previous config
* Make config name detailed
* Fix weather alert sensor unload (#7 )
* Unload weather alert platform
* Revert "Unload weather alert platform"
This reverts commit 95259fdee84f30a5be915eb1fbb2e19fcddc97e4.
* second try in async_unload_entry
* Make it work
* isort modification
* remove weather alert logic in sensor.py
* Refactor to avoid too long code lines
Co-authored-by: Quentin POLLET <polletquentin74@me.com >
* Update config tests to Meteo-France (#18 )
* Update meteo_france exception name
* Update MeteoFranceClient name used in tests
* Update 'test_user'
* Make test_user works
* Add test test_user_list
* Make test_import works
* Quick & Dirty fix on exception managment. WIP
* allow to catch MeteoFranceClient() exceptions
* remove test_abort_if_already_setup_district
* bump meteofrance-api version
* We do not need to test Exception in flow yet
* Remove unused data
* Change client1 fixture name
* Change client2 fixture name
* Finish cities step
* Test import with multiple choice
* refactor places
* Add option flow test
Co-authored-by: Quentin POLLET <polletquentin74@me.com >
* Fix errors due to missing data in the API (#22 )
* fix case where probability_forecast it not in API
* Workaround for probabilty_forecast data null value
* Fix weather alert sensor added when shouldn't
* Add a partlycloudy and cloudy value options in condition map
* Enable snow chance entity
* fix from review
* remove summary
* Other fix from PR review
* WIP: error if no results in city search
* Add test for config_flow when no result in search
* Lint fix
* generate en.json
* Update homeassistant/components/meteo_france/__init__.py
* Update homeassistant/components/meteo_france/__init__.py
* Update homeassistant/components/meteo_france/__init__.py
* Update homeassistant/components/meteo_france/sensor.py
* Update homeassistant/components/meteo_france/__init__.py
* Update homeassistant/components/meteo_france/__init__.py
* string: city input --> city field
Co-authored-by: Quentin POLLET <polletquentin74@me.com >
2020-08-01 22:56:00 +02:00
..
2020-07-26 08:59:11 -10:00
2020-07-26 20:00:47 -05:00
2020-07-03 11:29:35 -07:00
2020-07-28 17:51:35 +02:00
2020-05-08 09:49:47 -05:00
2020-05-31 22:18:30 -07:00
2020-07-30 08:41:18 -10:00
2020-05-31 22:18:30 -07:00
2020-06-23 10:17:22 -07:00
2020-06-23 17:05:32 -05:00
2020-07-14 10:47:59 -07:00
2020-06-15 13:38:38 +02:00
2020-06-15 16:30:40 -07:00
2020-02-24 21:37:38 -08:00
2020-07-20 02:48:08 +02:00
2020-06-30 11:59:21 -05:00
2020-07-13 17:43:11 +02:00
2020-06-08 12:26:40 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-06-06 13:43:28 -07:00
2020-05-03 11:27:19 -07:00
2020-06-29 09:39:24 -07:00
2020-05-26 08:38:02 +02:00
2020-07-14 18:03:24 -10:00
2020-06-08 12:26:40 -07:00
2020-05-25 15:39:24 -04:00
2020-07-29 14:51:30 -10:00
2020-07-03 11:29:35 -07:00
2020-07-03 11:29:35 -07:00
2020-04-30 13:29:50 -07:00
2020-06-22 23:59:50 +02:00
2020-07-26 00:04:10 +02:00
2020-06-30 11:59:21 -05:00
2020-05-31 22:18:30 -07:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-05-26 13:29:19 +02:00
2020-06-16 11:05:33 +02:00
2020-05-03 11:27:19 -07:00
2020-06-08 12:26:40 -07:00
2020-08-01 11:18:40 -05:00
2020-05-25 16:05:52 -04:00
2020-05-13 10:36:32 +02:00
2020-07-14 22:17:14 +02:00
2020-05-09 22:16:21 -04:00
2020-06-02 18:54:58 -05:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-07-29 23:46:14 +02:00
2020-06-29 09:39:24 -07:00
2020-05-20 23:47:30 +02:00
2020-06-29 09:39:24 -07:00
2020-06-08 12:26:40 -07:00
2020-06-10 18:31:59 +02:00
2020-07-31 15:47:01 +02:00
2020-06-08 12:26:40 -07:00
2020-07-19 13:48:08 -07:00
2020-02-08 13:10:59 +01:00
2020-04-30 13:29:50 -07:00
2020-06-22 21:22:52 -07:00
2020-04-20 18:07:50 -07:00
2020-07-31 14:45:03 +02:00
2020-06-20 22:59:25 +02:00
2020-06-08 12:26:40 -07:00
2020-07-05 12:50:51 -05:00
2020-06-22 15:17:59 +02:00
2020-06-02 16:17:21 +02:00
2020-07-17 18:17:40 -07:00
2020-07-05 12:55:44 -05:00
2020-07-06 15:16:21 -07:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-05-31 22:18:30 -07:00
2020-06-29 09:39:24 -07:00
2020-06-02 17:52:36 -07:00
2020-07-02 02:14:54 +02:00
2020-05-08 17:52:32 +02:00
2020-07-03 17:31:57 -05:00
2020-07-21 14:18:43 -10:00
2020-04-30 13:29:50 -07:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-06-29 09:39:24 -07:00
2020-06-03 07:01:56 -05:00
2020-05-04 20:30:24 -07:00
2020-06-16 05:31:11 +01:00
2020-04-14 09:56:50 +02:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-01-04 22:45:11 +01:00
2020-04-30 13:29:50 -07:00
2020-07-19 22:33:56 -10:00
2020-05-03 11:27:19 -07:00
2020-07-08 20:46:38 -04:00
2020-04-30 16:24:47 -07:00
2020-03-05 17:19:30 -08:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-05-03 11:27:19 -07:00
2020-07-22 20:21:32 -10:00
2020-06-08 12:26:40 -07:00
2020-07-13 17:43:11 +02:00
2020-05-31 22:18:30 -07:00
2020-07-16 17:58:45 -07:00
2020-07-03 11:29:35 -07:00
2020-05-30 17:27:20 +02:00
2020-04-30 13:29:50 -07:00
2020-07-02 10:51:31 -07:00
2020-07-13 17:43:11 +02:00
2020-07-13 17:43:11 +02:00
2020-05-31 22:18:30 -07:00
2020-06-24 14:19:08 +02:00
2020-05-03 11:27:19 -07:00
2020-01-02 14:22:30 -06:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-07-03 11:42:56 -07:00
2020-07-02 13:45:57 -05:00
2020-06-22 16:11:18 -07:00
2020-06-29 09:39:24 -07:00
2020-07-04 17:21:37 +02:00
2020-06-08 12:26:40 -07:00
2020-05-08 17:52:32 +02:00
2020-07-04 17:42:28 +02:00
2020-07-04 19:06:42 -07:00
2020-04-30 13:29:50 -07:00
2020-02-10 15:02:14 -08:00
2020-07-25 21:43:45 +02:00
2020-05-30 17:27:20 +02:00
2020-08-01 04:05:00 +02:00
2020-02-24 17:54:20 -08:00
2020-06-30 11:59:21 -05:00
2020-05-08 02:29:47 +02:00
2020-06-08 12:26:40 -07:00
2020-05-08 17:52:32 +02:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-07-21 17:29:57 -07:00
2020-07-03 11:29:35 -07:00
2020-05-03 11:27:19 -07:00
2020-07-29 21:20:06 +02:00
2020-06-15 15:22:53 -07:00
2020-06-08 12:26:40 -07:00
2020-06-20 09:54:44 +02:00
2020-06-29 09:39:24 -07:00
2020-04-30 13:29:50 -07:00
2020-07-14 22:31:34 +02:00
2020-06-08 12:26:40 -07:00
2020-06-22 23:41:44 -07:00
2020-06-08 12:26:40 -07:00
2020-07-31 09:41:36 -10:00
2020-06-29 09:39:24 -07:00
2020-06-08 12:26:40 -07:00
2020-07-14 22:43:21 +02:00
2020-01-02 21:17:10 +02:00
2020-05-03 11:27:19 -07:00
2020-06-02 13:54:11 -05:00
2020-04-30 21:37:58 +02:00
2020-07-10 09:37:36 -07:00
2020-07-17 21:57:52 -07:00
2020-05-10 22:06:31 -07:00
2020-06-15 00:15:20 +02:00
2019-12-09 11:56:51 +01:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-06-01 11:44:45 -07:00
2020-06-08 12:26:40 -07:00
2020-07-16 09:42:02 +02:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-02-08 13:10:59 +01:00
2020-01-06 01:22:22 +01:00
2020-04-17 10:25:31 +02:00
2020-05-31 22:18:30 -07:00
2020-07-03 11:43:13 -07:00
2020-04-30 16:31:00 -07:00
2020-07-26 10:26:32 +02:00
2020-05-13 11:15:17 -05:00
2020-04-30 13:29:50 -07:00
2020-06-29 09:39:24 -07:00
2020-07-03 11:29:35 -07:00
2020-06-08 12:26:40 -07:00
2020-06-20 08:39:04 +02:00
2020-05-31 22:18:30 -07:00
2020-07-21 17:19:07 -07:00
2020-05-03 11:27:19 -07:00
2020-04-07 23:14:28 +02:00
2020-05-31 22:18:30 -07:00
2020-04-09 16:06:01 +02:00
2020-05-08 17:52:32 +02:00
2020-04-25 18:02:41 +02:00
2020-07-16 21:48:22 -07:00
2020-06-08 12:26:40 -07:00
2020-07-13 10:20:18 -07:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-22 23:01:48 +02:00
2020-04-09 00:57:47 +02:00
2020-05-08 17:52:32 +02:00
2020-06-29 09:39:24 -07:00
2020-06-29 09:39:24 -07:00
2020-06-05 10:59:55 +02:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-05-03 11:27:19 -07:00
2020-01-06 01:22:22 +01:00
2020-04-30 13:29:50 -07:00
2020-08-01 22:56:00 +02:00
2020-06-29 09:39:24 -07:00
2020-05-31 22:18:30 -07:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-06-01 11:44:45 -07:00
2020-06-01 11:44:45 -07:00
2020-06-29 09:39:24 -07:00
2020-05-10 08:44:05 -05:00
2020-07-18 16:18:31 -07:00
2020-04-30 13:29:50 -07:00
2020-07-13 17:43:11 +02:00
2020-07-13 17:43:11 +02:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-05-12 22:30:59 +02:00
2020-06-29 09:39:24 -07:00
2020-07-24 12:29:19 +02:00
2020-06-23 10:17:22 -07:00
2020-06-22 23:59:50 +02:00
2020-06-22 23:59:50 +02:00
2020-06-23 20:02:29 -05:00
2020-04-30 13:29:50 -07:00
2020-04-30 13:29:50 -07:00
2020-01-06 01:22:22 +01:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-04-30 13:29:50 -07:00
2020-07-09 06:39:33 +02:00
2020-04-30 13:29:50 -07:00
2020-06-23 10:17:22 -07:00
2020-01-01 17:18:40 -06:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-05-03 11:27:19 -07:00
2020-04-30 14:23:30 +02:00
2020-07-29 23:20:19 +02:00
2020-06-29 15:41:52 -07:00
2020-06-09 14:19:46 +02:00
2020-06-17 12:13:28 -07:00
2020-05-24 21:50:50 +02:00
2020-05-31 22:18:30 -07:00
2020-06-01 11:44:45 -07:00
2020-05-03 11:27:19 -07:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-05-31 22:18:30 -07:00
2020-01-29 18:18:24 +01:00
2020-07-13 17:43:11 +02:00
2020-08-01 15:50:04 -04:00
2020-07-03 11:29:35 -07:00
2020-06-19 16:03:39 +02:00
2020-06-08 12:26:40 -07:00
2019-12-09 14:29:39 +01:00
2020-04-30 13:29:50 -07:00
2020-07-17 23:19:01 -07:00
2020-06-29 09:39:24 -07:00
2020-07-14 22:24:27 -07:00
2020-07-29 20:56:32 +02:00
2020-07-03 15:28:34 -07:00
2020-07-03 16:40:17 -05:00
2020-05-30 17:27:20 +02:00
2020-07-03 15:38:05 -07:00
2020-06-11 10:15:02 -07:00
2020-07-12 21:27:33 +02:00
2020-06-08 12:26:40 -07:00
2020-07-03 11:34:11 -07:00
2020-05-03 11:27:19 -07:00
2020-06-29 09:39:24 -07:00
2020-06-08 12:26:40 -07:00
2020-06-29 09:39:24 -07:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-04-30 13:29:50 -07:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-05-31 22:18:30 -07:00
2020-07-20 20:18:31 -10:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-06-08 12:26:40 -07:00
2020-06-23 15:08:55 -07:00
2019-12-09 14:39:51 +01:00
2020-06-29 09:39:24 -07:00
2020-08-01 11:26:26 -05:00
2020-06-08 12:26:40 -07:00
2020-07-31 14:38:49 +02:00
2020-06-23 09:03:43 -07:00
2020-05-04 08:28:32 -04:00
2020-04-09 00:57:47 +02:00
2020-01-14 13:03:02 -08:00
2020-07-28 12:03:56 +02:00
2020-06-08 12:26:40 -07:00
2020-07-10 17:00:57 -07:00
2020-02-05 16:52:21 +01:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-05-31 22:18:30 -07:00
2020-04-30 13:29:50 -07:00
2020-06-05 10:59:55 +02:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-07-05 23:04:19 +02:00
2020-07-24 16:11:02 +02:00
2019-12-09 14:38:01 +01:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-06-26 10:46:14 -07:00
2020-07-05 14:20:51 -05:00
2020-07-31 17:40:23 +02:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-06-22 23:59:50 +02:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-05-03 11:27:19 -07:00
2020-05-30 17:27:20 +02:00
2020-07-03 16:20:17 -05:00
2020-07-05 23:04:19 +02:00
2020-05-17 16:16:50 -05:00
2020-05-12 22:56:12 +02:00
2020-04-10 19:17:46 +02:00
2019-12-09 14:38:01 +01:00
2020-06-10 18:33:48 +02:00
2020-06-23 20:02:29 -05:00
2020-05-30 17:27:20 +02:00
2020-05-31 22:18:30 -07:00
2020-07-03 11:29:35 -07:00
2020-04-30 21:37:58 +02:00
2020-04-05 00:33:07 +02:00
2020-05-31 22:18:30 -07:00
2020-07-14 22:25:48 -07:00
2020-06-08 12:26:40 -07:00
2020-05-03 11:27:19 -07:00
2020-04-09 00:57:47 +02:00
2020-06-29 09:39:24 -07:00
2020-06-08 12:26:40 -07:00
2020-04-30 13:29:50 -07:00
2020-07-08 16:38:16 -07:00
2020-05-14 22:20:53 -05:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-06-15 13:38:38 +02:00
2020-07-24 15:48:07 +02:00
2020-04-30 13:29:50 -07:00
2019-12-09 14:41:48 +01:00
2020-05-03 14:40:19 +02:00
2020-06-05 21:12:48 +02:00
2020-06-08 12:26:40 -07:00
2020-05-03 11:27:19 -07:00
2020-06-29 09:39:24 -07:00
2020-01-20 18:44:55 +02:00
2020-06-22 18:22:41 -07:00
2020-06-03 18:38:31 +02:00
2020-05-03 11:27:19 -07:00
2020-05-08 17:52:32 +02:00
2020-05-31 22:18:30 -07:00
2020-06-28 13:56:54 +02:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-06-15 13:33:26 +02:00
2020-05-10 22:01:00 -05:00
2020-04-04 14:51:12 +02:00
2020-05-03 11:27:19 -07:00
2020-05-31 22:18:30 -07:00
2020-06-08 12:26:40 -07:00
2020-06-02 10:35:27 +02:00
2020-04-30 13:29:50 -07:00
2020-06-08 12:26:40 -07:00
2020-07-03 11:29:35 -07:00
2020-05-12 15:27:34 -07:00
2020-05-14 22:58:41 +02:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-07-20 20:18:31 -10:00
2020-06-08 12:26:40 -07:00
2020-04-26 02:11:08 +02:00
2020-05-03 11:27:19 -07:00
2020-06-13 16:36:50 +02:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-05-03 11:27:19 -07:00
2020-04-30 13:29:50 -07:00
2020-07-08 15:31:41 -04:00
2020-05-08 02:29:47 +02:00
2020-07-27 09:19:19 +02:00
2020-06-08 12:26:40 -07:00
2020-07-08 14:25:21 -07:00
2020-05-01 16:29:14 +02:00
2020-06-17 07:39:33 +02:00
2020-05-08 17:52:32 +02:00
2020-05-27 15:51:39 +02:00
2020-07-13 17:43:11 +02:00
2020-07-03 11:29:35 -07:00
2020-07-03 11:29:35 -07:00
2020-06-07 23:37:58 +02:00
2020-07-20 11:52:52 +02:00
2020-05-31 22:18:30 -07:00
2020-06-25 11:41:53 -07:00
2020-06-08 12:26:40 -07:00
2020-05-31 22:18:30 -07:00
2020-04-30 13:29:50 -07:00
2020-06-22 11:54:17 +02:00
2020-07-04 14:56:16 +02:00
2020-06-08 19:31:58 +02:00
2020-07-17 12:55:30 -07:00
2020-05-08 02:29:47 +02:00
2020-05-03 11:27:19 -07:00
2020-06-29 09:39:24 -07:00
2020-07-22 20:21:57 -10:00
2020-07-03 11:29:35 -07:00
2020-07-16 16:25:42 -04:00
2020-04-30 13:29:50 -07:00
2020-07-20 20:18:31 -10:00
2020-04-30 13:29:50 -07:00