epenet
e84e5f134e
Use US_CUSTOMARY_SYSTEM in tests ( #80658 )
...
* Use US_CUSTOMARY_SYSTEM in tests
* Don't update test_unit_system
2022-10-20 15:42:23 +02:00
Maciej Bieniek
5abff31437
Use new device classes in Accuweather integration ( #79717 )
...
* Add new device classes
* Update tests
2022-10-07 17:52:36 -06:00
epenet
c5a56dab42
Apply hass-relative-import to tests (a-c) ( #78728 )
2022-09-19 09:48:25 +02:00
Franck Nijhof
7cd68381f1
Search/replace RESULT_TYPE_* by FlowResultType enum ( #74642 )
2022-07-07 19:57:36 +03:00
G Johansson
90e1fb6ce2
Weather unit conversion ( #73441 )
...
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
J. Nick Koston
f1b400feaf
Revert changes from #70300 part 2 ( #70386 )
2022-04-21 10:50:00 -10:00
J. Nick Koston
309424d3b9
Prevent tests changing units from affecting other tests ( #70300 )
...
* Prevent tests changing temperature_unit from affecting other tests
* tweak
2022-04-19 11:38:52 -10:00
epenet
053c4428a9
Prettify json (component test fixtures) ( #68892 )
2022-03-30 11:37:17 +02:00
Maciej Bieniek
24212ab598
Add diagnostics platform for AccuWeather integration ( #68752 )
2022-03-28 08:42:25 -07:00
Maciej Bieniek
32be5576dc
Get wind speed unit from AccuWeather data ( #65425 )
2022-02-02 17:07:12 -08:00
Josh Soref
ace5918208
spelling: components/accuweather ( #64264 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-01-17 15:19:24 +01:00
Dave T
fe08668a87
Use DeviceClass Enums in accuweather tests ( #61990 )
2021-12-16 21:05:56 +01:00
Ville Skyttä
5bf67cac66
Use RegistryEntryDisabler ( #60436 )
2021-12-15 23:25:40 +02:00
Paulus Schoutsen
31153ac155
Move fixtures part 1 ( #58902 )
2021-11-01 20:47:05 -07:00
Maciej Bieniek
e6c850136c
Add support for state_class to AccuWeather integration ( #51510 )
...
* Add support for state_class
* Use get() method
2021-06-25 10:06:15 +02:00
Maciej Bieniek
2aed268fb7
Remove `undo_listener` variable in AccuWeather integration ( #52032 )
2021-06-20 21:40:04 -07:00
Maciej Bieniek
57106098f9
Fix AccuWeather sensors updates ( #52031 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-06-20 14:53:08 -07:00
Ville Skyttä
19d25cd901
Change config entry state to an enum ( #49654 )
...
* Change config entry state to an enum
* Allow but deprecate EntryState str equality comparison
* Test fixes
* Rename to ConfigEntryState
* Remove str comparability backcompat
* Update new occurrences of strs cropped up during review
2021-05-20 19:19:20 +02:00
Maciej Bieniek
bce5f8ee05
Improve AccuWeather type annotations ( #50616 )
...
* 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
Ville Skyttä
a396619251
Use disabled_by constants ( #49584 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-04-23 09:56:42 +02:00
Erik Montnemery
78b21b1ad1
Update tests a-b to use async_get() instead of async_get_registry() ( #47651 )
2021-03-09 14:24:34 +01:00
Maciej Bieniek
5d955eb039
Change update interval tests in AccuWeather integration ( #45562 )
2021-01-27 13:28:29 +01:00
Maciej Bieniek
14f5eb7305
Increase update interval in AccuWeather integration ( #44984 )
2021-01-20 15:17:53 -05:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Abílio Costa
896f51fd82
Add Wind to Accuweather sensors ( #44364 )
2020-12-19 16:10:02 +01:00
Maciej Bieniek
b294e1c98c
Add support for system health to AccuWeather integration ( #43277 )
2020-12-02 19:36:16 +01:00
springstan
30b94892c4
Use strings instead of f-strings for constants ( #40619 )
2020-11-09 10:09:53 +01:00
J. Nick Koston
6822190772
Fix unmocked https in the test suite ( #42316 )
2020-10-25 07:16:23 -05:00
springstan
06a133c3e9
Add and use length millimeters constant ( #40116 )
...
* Add and use length millimeters constant
* Fix pylint error
* Fix broken accuweather sensor test
2020-09-22 21:09:17 -05:00
springstan
d2b1918e9c
Drop UNIT_ prefix for percentage constant ( #39383 )
2020-09-05 21:09:14 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
Maciej Bieniek
a7e19c8896
Improve tests for AccuWeather integration ( #38621 )
...
* Add more tests
* Add tests for sensor platform
* Add more tests
* More tests
* Simplify parsing of attributes
* Change Quality scale to platinum
* Patch the library in the manual update entity test
* Add unsupported condition icon test
* Do not patch _async_get_data
* Apply suggestions from code review
* Update config_flow.py
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Update tests/components/accuweather/test_weather.py
* Apply suggestions from code review
* Add return_value
Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-08-09 09:21:36 -05:00
Maciej Bieniek
2b0914994d
Add changes from comments after merging AccuWeather ( #38227 )
...
* 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 ( #37166 )
...
* 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