Commit graph

13 commits

Author SHA1 Message Date
Maciej Bieniek
d47e58fb38
Bump accuweather to version 1.0.0 () 2023-05-21 14:50:10 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test () 2023-04-11 10:00:17 +02:00
epenet
8c821c8969
Add JSON support to load_fixture ()
* Add JSON support to load_fixture

* More tests

* Remove lru_cache on load_json
2023-02-16 19:40:47 +01:00
epenet
2545694d41
Add type hints to integration tests (a) ()
* Add type hints to accuweather tests

* Adjust a** components

* Adjust aiohttp_client

* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 () 2023-02-02 18:35:24 +01:00
epenet
6e2803a6d8
Use SchemaOptionsFlowHandler in Accuweather ()
Use SchemaOptionsFlowHandler in accuweather
2022-11-24 20:08:14 +01:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum () 2022-07-07 19:57:36 +03:00
Maciej Bieniek
bce5f8ee05
Improve AccuWeather type annotations ()
* Improve type annotations

* Remove unused argument

* Simplify state logic

* Fix uvindex state

* Fix type for logger

* Increase tests coverage

* Fix pylint arguments-differ error

* Suggested change

* Suggested change

* Remove unnecessary variable

* Remove unnecessary conditions

* Use int instead of list for forecast days

* Add enabled to sensor types dicts

* Fix request_remaining conversion and tests

* Run hassfest

* Suggested change

* Suggested change

* Do not use StateType
2021-05-19 09:37:16 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest () 2021-01-01 22:31:56 +01:00
J. Nick Koston
6822190772
Fix unmocked https in the test suite () 2020-10-25 07:16:23 -05:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 () 2020-08-27 13:56:20 +02:00
Maciej Bieniek
2b0914994d
Add changes from comments after merging AccuWeather ()
* Fix documentation url

* Return None instead STATE_UNKNOWN

* Invert forecast check

* Patch async_setup_entry in test_create entry

* Improve test name, docstring and add comment
2020-07-26 20:00:47 -05:00
Maciej Bieniek
581c4a4edd
Add AccuWeather integration ()
* Initial commit

* Fix strings

* Fix unit system

* Add config_flow tests

* Simplify tests

* More tests

* Update comment

* Fix pylint error

* Run gen_requirements_all

* Fix pyline error

* Round precipitation and precipitation probability

* Bump backend library

* Bump backend library

* Add undo update listener on unload

* Add translation key for invalid_api_key

* Remove entity_registry_enabled_default property

* Suggested change

* Bump library
2020-07-24 15:59:15 -05:00