1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-13 07:20:01 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
J. Nick Koston
f1b400feaf Revert changes from part 2 () 2022-04-21 10:50:00 -10:00
J. Nick Koston
309424d3b9 Prevent tests changing units from affecting other tests ()
* Prevent tests changing temperature_unit from affecting other tests

* tweak
2022-04-19 11:38:52 -10:00
Josh Soref
ace5918208 spelling: components/accuweather ()
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 () 2021-12-16 21:05:56 +01:00
Ville Skyttä
5bf67cac66 Use RegistryEntryDisabler () 2021-12-15 23:25:40 +02:00
Maciej Bieniek
e6c850136c Add support for state_class to AccuWeather integration ()
* Add support for state_class

* Use get() method
2021-06-25 10:06:15 +02:00
Maciej Bieniek
57106098f9 Fix AccuWeather sensors updates ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2021-06-20 14:53:08 -07: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
Ville Skyttä
a396619251 Use disabled_by constants ()
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() () 2021-03-09 14:24:34 +01:00
Franck Nijhof
65cf2fcb6f Drop asynctest () 2021-01-01 22:31:56 +01:00
Abílio Costa
896f51fd82 Add Wind to Accuweather sensors () 2020-12-19 16:10:02 +01:00
springstan
30b94892c4 Use strings instead of f-strings for constants () 2020-11-09 10:09:53 +01:00
springstan
06a133c3e9 Add and use length millimeters constant ()
* 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 () 2020-09-05 21:09:14 +02:00
Maciej Bieniek
a7e19c8896 Improve tests for AccuWeather integration ()
* 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