core/tests
Oncleben31 6b85e23408
Refactor Météo-France to use API instead of web scraping ()
* 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 ()

* 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. ()

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

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

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

* 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
..
auth Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
components Refactor Météo-France to use API instead of web scraping () 2020-08-01 22:56:00 +02:00
fixtures Add basic websocket api for OZW () 2020-07-29 22:35:26 +02:00
hassfest
helpers Fix queued script not updating current attribute when queuing () 2020-08-01 15:51:48 +02:00
mock Use asynctest-mock in most places () 2020-05-03 11:27:19 -07:00
resources
scripts Detect lingering threads after tests () 2020-07-09 16:15:14 +02:00
test_util Fix docstring in test_utils/aiohttp.py () 2020-04-11 20:20:19 +02:00
testing_config Address new issues flagged by flake8 3.8.0a2 () 2020-04-30 21:37:58 +02:00
util Round time values in get_age() to better approximate the actual age () 2020-07-09 11:19:38 -07:00
__init__.py
async_mock.py Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
bandit.yaml
common.py Use event loop scheduling for tracking time patterns () 2020-07-20 20:18:31 -10:00
conftest.py Use event loop scheduling for tracking time patterns () 2020-07-20 20:18:31 -10:00
ignore_uncaught_exceptions.py Fix broken CI () 2020-05-06 18:40:21 -07:00
test_bootstrap.py Detect lingering threads after tests () 2020-07-09 16:15:14 +02:00
test_config.py Drop white blacklist pt1 () 2020-07-13 17:43:11 +02:00
test_config_entries.py ConfigFlow default discovery without unique ID () 2020-06-15 13:38:38 +02:00
test_core.py Add debug logging for when a chain of tasks blocks startup () 2020-07-28 18:24:29 +02:00
test_data_entry_flow.py Add current step that is in progress () 2020-05-05 21:34:51 -07:00
test_loader.py Improve after_dependencies handling () 2020-06-19 17:24:33 -07:00
test_main.py Use asynctest-mock in most places () 2020-05-03 11:27:19 -07:00
test_requirements.py Upgrade zeroconf to 0.27.1 () 2020-06-05 14:33:26 -07:00
test_setup.py Improve after_dependencies handling () 2020-06-19 17:24:33 -07:00