Commit graph

28 commits

Author SHA1 Message Date
Joost Lekkerkerker
a2b0149677
Remove config name from IPMA config flow () 2023-08-23 11:35:04 +02:00
Ville Skyttä
2399cd283a
Python 3.10 support cleanups () 2023-08-21 19:14:07 +02:00
Diogo Gomes
abf065ed76
Fix checks for duplicated config entries in IPMA ()
* fix unique_id

* old unique id detection

* update tests

* match entry not unique_id

* address review
2023-08-16 12:56:47 +02:00
Erik Montnemery
ae8f9dcb77
Modernize ipma weather ()
* Modernize ipma weather

* Add test snapshots

* Don't include forecast mode in weather entity unique_id for new config entries

* Remove old migration code

* Remove outdated test
2023-08-12 15:15:09 +02:00
Diogo Gomes
96bf8ef8d6
Add Risk of Fire sensor to IPMA () 2023-06-27 16:00:10 +02:00
J. Nick Koston
99b58f157e
Bump PyJWT to 2.6.0 ()
* Bump PyJWT to 2.6.0

* fix time being frozen too late which makes the access token creation time in the future

* revert zha change

* fix repairs test

* fix ical test
2023-03-22 20:00:47 -04:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
epenet
aa00114c2f
Add return type to async tests without arguments () 2023-02-07 10:26:56 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
Diogo Gomes
180b296426
IPMA Code quality improvement ()
* merge upstream/dev

* remove comment

* coverage increase

* merge upstream/dev

* refactor

* wait for another PR

* remove left overs

* wait for next PR

* only remove on successful unload

Co-authored-by: Shay Levy <levyshay1@gmail.com>

Co-authored-by: Shay Levy <levyshay1@gmail.com>
2022-10-14 00:18:57 +03:00
Diogo Gomes
831c87205f
Retry on unavailable IPMA api ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-09-13 21:00:59 -04:00
Diogo Gomes
1fe5948afd
Cleanup IPMA code ()
revert yaml import
2022-09-01 23:15:42 +02:00
Diogo Gomes
f98e86d3a6
Bump pyipma to 3.0.2 ()
* upgrade to pyipma 3.0.0

* bump to support python3.9

* remove deprecated async_setup_platform

* full coverage

* add migrate
2022-08-31 07:00:42 -04:00
G Johansson
90e1fb6ce2
Weather unit conversion ()
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
Erik Montnemery
84226da404
Update tests i-o to use async_get() instead of async_get_registry() () 2021-03-09 14:32:08 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
Diogo Gomes
3e24868a9e
Add system health check to IPMA () 2020-11-30 16:24:18 +01:00
Diogo Gomes
1f850f6374
Enable co-existence of two IPMA weather entities for the same location ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-21 23:41:06 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Diogo Gomes
39843319e2
Update IPMA weather component ()
* long overdue mismatch

* missing updated tests
2020-08-10 21:55:44 -05:00
Paulus Schoutsen
276f3afb00
Do async_setup_platform in background ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-05-31 22:18:30 -07:00
Paulus Schoutsen
ec47216388
Use built-in test helpers on 3.8 () 2020-04-30 13:29:50 -07:00
Paulus Schoutsen
0d700f6a63
Fix tests for Python 3.8 () 2020-04-25 14:32:55 -07:00
Abílio Costa
e6148d223a
Allow hourly forecast in IPMA ()
* update ipma component for pyipma 2.0
* fix wind speed; refactor forecast
* update requirements*.txt
* fix tests; update CODEOWNERS; update pyipma to 2.0.1
* minor changes as suggested in PR
* make lint happy
* fix mocking coroutines
* restore old unique id
* fix station lat/lon; update pyipma version
* add hourly forecast option to IPMA
* add forecast tests
* use for instead of lambda
2020-02-14 12:04:41 -05:00
Abílio Costa
2aff913d9b Update pyipma to 2.0 ()
* update ipma component for pyipma 2.0

* fix wind speed; refactor forecast

* update requirements*.txt

* fix tests; update CODEOWNERS; update pyipma to 2.0.1

* minor changes as suggested in PR

* make lint happy

* fix mocking coroutines

* restore old unique id

* fix station lat/lon; update pyipma version
2020-01-21 17:04:22 +01:00
Bas Nijholt
14779ce3d0 Sort imports according to PEP8 for components starting with "I" () 2019-12-09 14:21:24 +01:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Diogo Gomes
55d1d3d8ae Move weather.ipma into a component ()
* initial version

* works

* lint

* move

* hound

* fix formatting

* update

* add extra features

* houmd

* docstring

* fix tests

* lint

* update requirements_all.txt

* new tests

* lint

* update CODEOWNERS

* MockDependency pyipma

* hound

* bump pyipma version

* add config_flow tests

* lint

* improve test coverage

* fix test

* address comments by @MartinHjelmare

* remove device_info

* hound

* stale comment

* Add deprecation warning

* address comments

* lint
2019-02-08 10:55:58 +01:00