Kevin Stillhammer
173f4760bc
Deprecate weather.get_forecast ( #102534 )
...
* Deprecate weather.get_forecast
* Rename forecast to get_forecasts
* raise issue for use of deprecated service
* Add fix_flow
* Add service translation/yaml
2023-11-19 20:44:02 +01:00
Franck Nijhof
04e0e2bd75
Update a* tests to use device & entity registry fixtures ( #103711 )
2023-11-09 20:46:20 +01:00
Erik Montnemery
27f7399071
Modernize accuweather weather ( #99001 )
2023-08-25 16:46:23 +02:00
Joost Lekkerkerker
af689d7c3e
Use snapshot assertion for Accuweather diagnostics ( #98725 )
2023-08-21 09:12:43 +02:00
Maciej Bieniek
12426dfad4
Add entity translations for AccuWeather ( #95940 )
...
* Add entity name translations
* Some improvements
* Update tests
* Suggested changes
* day 0 -> today
* night 0 -> tonight
* Fix precipitation
2023-07-29 21:22:53 +02:00
Maciej Bieniek
5249660a6a
Add `uv_index` to AccuWeather weather entity ( #97015 )
2023-07-22 17:11:39 +02:00
Maciej Bieniek
fe9366eee6
Add new properties to the weather entity in Accuweather integration ( #95110 )
...
* Add new properties to the current conditions
* Add new properties to forecast
* Use existing constants
* Update tests
2023-06-24 12:38:20 +02:00
Maciej Bieniek
71466e5012
Add new sensors to AccuWeather ( #93362 )
...
* Add solar irradiance and condition sensors
* Use entity_registry_enabled_by_default fixture
2023-05-22 21:55:54 +02:00
Maciej Bieniek
d47e58fb38
Bump `accuweather` to version 1.0.0 ( #93305 )
2023-05-21 14:50:10 +02:00
Maciej Bieniek
ee23d79a00
Add air quality sensors to Accuweather integration ( #91516 )
2023-04-22 17:19:21 +02:00
Maciej Bieniek
9d68cdca18
Remove `ozone` state attribute and `ozone` sensors from Accuweather ( #91492 )
2023-04-16 14:01:22 +02:00
epenet
7b3a932cd9
Remove incorrect constant usage in test ( #91198 )
2023-04-11 10:00:17 +02:00
Maciej Bieniek
8d21e2b168
Use metric units internally in Accuweather integration ( #90444 )
...
* Use metric units internally
* Remove unnecessary code
* Simplify sensor classes
* Remove AccuWeatherForecastSensor class
* Update wind speed value in test
* Return suggested_unit_of_measurement for wind entities
* Clean test
* Use _attr_suggested_unit_of_measurement
* Remove _get_suggested_unit()
* Remove unnecessarey code
2023-03-30 13:11:33 +02:00
epenet
8c821c8969
Add JSON support to load_fixture ( #88076 )
...
* 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) ( #87684 )
...
* Add type hints to accuweather tests
* Adjust a** components
* Adjust aiohttp_client
* ClientSessionGenerator/WebSocketGenerator
2023-02-08 12:16:23 +01:00
Erik Montnemery
bcc1aa03b4
Move sensor rounding to frontend ( #87330 )
...
* Move sensor rounding to frontend
* Update integrations
* Add comment
2023-02-04 14:54:36 -05:00
Franck Nijhof
5e81d28116
Update black to 23.1.0 ( #87188 )
2023-02-02 18:35:24 +01:00
Maciej Bieniek
d485630ce9
Use device class ENUM for Accuweather pressure tendency sensor ( #86887 )
...
* Use device class ENUM for pressure tendency sensor
* Format
2023-01-30 12:03:23 +01:00
Maciej Bieniek
58bfeb3110
Fix `state_class` for Accuweather `precipitation` sensor ( #86088 )
2023-01-20 23:36:25 +01:00
Michael
2850583085
Replace the usage of unit constants by enumerations in Tests [a-e] ( #85932 )
2023-01-15 14:44:01 +01:00
epenet
72fd57a685
Use new device class in accuweather ( #83318 )
2022-12-06 11:54:59 +01:00
Erik Montnemery
8e617bbc1d
Add `translation_key` property to entites ( #82701 )
...
* Add translation_key attribute to entity state
* Update accuweather test
* Index entity translation keys by platform
* Store translation key in entity registry
2022-12-01 09:34:09 +01:00
epenet
6e2803a6d8
Use SchemaOptionsFlowHandler in Accuweather ( #82627 )
...
Use SchemaOptionsFlowHandler in accuweather
2022-11-24 20:08:14 +01:00
Maciej Bieniek
052c673c9e
Use `wind_speed` device class instead of `speed` in Accuweather ( #81016 )
2022-10-26 13:47:29 +02:00
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