GeoNet NZ Quakes feed integration (#25736)

* initial working version

* support configured unit system and convert distance automatically

* properly unloading integration when removed and stopping refreshes

* ran isort

* fixed pylint

* introduced time filter of seven days into past

* adding unit tests

* fixed lint

* removed unused code

* added test case

* added test case for config flow

* fixed lint

* fixed comment

* removed unused test code

* increased test coverage

* fixed filtering by time

* changed wording in config flow

* reformatted with black

* removed unused logger

* fixed black

* changed default mmi

* reduced the options in the config flow form; fixed a few schema options and processing of data

* moved unsubscribing signals

* fixed minimum magnitude and modified tests

* fixed radius in imperial unit system

* increased test coverage

* simplified code

* fixed lint

* changed string formatting; simplified code

* removed unused strings

* added translation
This commit is contained in:
Malte Franken 2019-08-10 20:50:27 +10:00 committed by Martin Hjelmare
parent e685f077ae
commit 9e6732e530
15 changed files with 908 additions and 0 deletions

View file

@ -43,6 +43,7 @@ COMMENT_REQUIREMENTS = (
TEST_REQUIREMENTS = (
"adguardhome",
"ambiclimate",
"aio_geojson_geonetnz_quakes",
"aioambient",
"aioautomatic",
"aiobotocore",