Marc Mueller
f11b316dac
Import Generator from collections.abc (4) ( #120917 )
2024-07-01 11:54:42 +02:00
G Johansson
8e3b58dc28
Clean weather tests ( #119916 )
2024-06-19 19:55:20 +02:00
G Johansson
b6b6248713
Remove legacy get forecast service from Weather ( #118664 )
...
* Remove legacy get forecast service from Weather
* Fix tests
* Fix test
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2024-06-17 21:13:28 +02:00
Michael Hansen
87114bf19b
Fix exposure checks on some intents ( #118988 )
...
* Check exposure in climate intent
* Check exposure in todo list
* Check exposure for weather
* Check exposure in humidity intents
* Add extra checks to weather tests
* Add more checks to todo intent test
* Move climate intents to async_match_targets
* Update test_intent.py
* Update test_intent.py
* Remove patch
2024-06-06 20:41:25 -05:00
Marc Mueller
59e178df3b
Import Generator from typing_extensions (5) ( #118993 )
2024-06-06 17:33:27 +02:00
epenet
f07f183a3e
Use registry fixtures in tests (v-y) ( #118299 )
2024-05-28 14:26:14 +02:00
G Johansson
65230908c6
Remove deprecated forecast attribute from WeatherEntity ( #110761 )
...
* Remove deprecated forecast attribute from WeatherEntity
* Fix some
* Ruff
* ipma
* buienradar
* some more
* Some more
* More and more
* strings
* attr_forecast
* Fix nws
* Fix
* remove from coverage
* Remove recorder test
* Review comments
2024-03-27 16:51:29 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Sid
727581eea3
Add first batch of Ruff PT rules ( #113665 )
...
* Add first batch of Ruff PT rules
* fix weather test
* Fix pilight test
* Update test_intent.py
* Update pilight test_init.py
* Update test_init.py
2024-03-18 13:26:14 +01:00
Marc Mueller
aa16a9d707
Add empty line after module docstring (3) ( #112750 )
2024-03-08 20:38:34 +01:00
Marc Mueller
87165c0d6e
Add empty line after module docstring [tests t-z] ( #112712 )
2024-03-08 14:44:56 +01:00
Michael
3310f4c130
Add significant Change support for weather ( #104840 )
2023-12-05 19:17:52 +01:00
Erik Montnemery
84e74e4c74
Reverse component path ( #104087 )
...
* Reverse component path
* Update translations helper
* Fix
* Revert incorrect change of PLATFORM_FORMAT
* Fix use of PLATFORM_FORMAT in tts
* Fix ios
2023-12-05 08:43:58 +01:00
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
Michael Hansen
45f1d50f03
Add HassGetWeather intent ( #102613 )
...
* Add HassGetWeather intent
* Use async_match_states
* Extend test coverage
* Use get_entity
* Update homeassistant/components/weather/intent.py
* Fix state
---------
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-11-15 16:20:15 -06:00
G Johansson
12e1acfcfc
Cleanup weather test ( #103090 )
...
* Cleanup weather test
* rename
* Clean off not used MockWeatherCompat
* conftest
* more cleanup
* Fin mod tests
* fix others
2023-11-03 05:53:38 +01:00
Kevin Stillhammer
dae742fba0
Use snapshots in weather tests ( #102297 )
2023-10-19 16:40:08 +02:00
Erik Montnemery
0c40c8465e
Correct checks for deprecated forecast in weather ( #101392 )
...
Co-authored-by: Robert Resch <robert@resch.dev>
2023-10-05 19:56:47 +02:00
G Johansson
657ed0bcdb
Clean out compatibility for deprecated methods in Weather ( #99263 )
...
Clean out compatability in Weather
2023-08-29 11:33:56 +02:00
G Johansson
7a690d7359
Add deprecation to legacy forecast for Weather ( #97294 )
...
* Add deprecation to legacy forecast
* Mod _reported
* issue
* remove not need variable
* kitchen_sink
* 2024.3
* remove demo and mqtt
* add checks
* fix deprecation
* remove variable
* fix kitchen_sink
* Fix deprecation warning
* Expand issue
* clean
* Fix tests
* fix kitchen_sink
* not report on core integrations
2023-08-29 10:38:59 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma ( #98162 )
2023-08-10 14:27:03 +02:00
Erik Montnemery
683c2f8d22
Add service for getting a weather forecast ( #97078 )
...
* Add service for getting a weather forecast
* Fix translations
* Improve service description
* Improve error handling
* Adjust typing
* Adjust typing
* Adjust service response format
2023-08-07 14:05:37 +02:00
G Johansson
4e30056830
Add new Forecasting to Weather ( #75219 )
...
* Add new Forecasting to Weather
* Add is_daytime for forecast_twice_daily
* Fix test
* Fix demo test
* Adjust tests
* Fix typing
* Add demo
* Mod demo more realistic
* Fix test
* Remove one weather
* Fix weather example
* kitchen_sink
* Reverse demo partially
* mod kitchen sink
* Fix twice_daily
* kitchen_sink
* Add test weathers
* Add twice daily to demo
* dt_util
* Fix names
* Expose forecast via WS instead of as state attributes
* Regularly update demo + kitchen_sink weather forecasts
* Run linters
* Fix rebase mistake
* Improve demo test coverage
* Improve weather test coverage
* Exclude kitchen_sink weather from test coverage
* Rename async_update_forecast to async_update_listeners
* Add async_has_listeners helper
* Revert "Add async_has_listeners helper"
This reverts commit 52af3664bb06d9feac2c5ff963ee0022077c23ba.
* Fix rebase mistake
---------
Co-authored-by: Erik <erik@montnemery.com>
2023-07-21 17:30:48 +02:00
G Johansson
58ce357870
Add uv_index to Weather Entity ( #96951 )
...
* Add uv_index to Weather Entity
* translation
* Update homeassistant/components/weather/__init__.py
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
---------
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-07-21 14:07:10 +02:00
G Johansson
5d365ecb6b
Implement Wind Gust speed in Weather entity component ( #95065 )
...
* Weather wind gust speed
* strings
* No compat
2023-06-23 08:22:46 +02:00
Arjan
29ef925d73
Add humidity to weather forecast ( #95064 )
...
* allow humidty in forecast
* Add tests
* float
---------
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
2023-06-23 00:22:07 +02:00
G Johansson
893b74d77e
Add missing test for Apparent temperature in Weather component ( #95080 )
2023-06-22 23:19:51 +02:00
G Johansson
eafddaae83
Implement Cloud coverage in Weather entity component ( #95068 )
2023-06-22 23:10:36 +02:00
G Johansson
b8de7df609
Implement dew point in weather entity component ( #95072 )
2023-06-22 21:34:23 +02:00
G Johansson
6ad3b60adf
Implement Apparent temperature in Weather entity component ( #95070 )
2023-06-22 19:52:14 +02:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ( #92398 )
...
* Allow exposing any entity to the default conversation agent
* Tweak
* Fix race, update tests
* Update tests
2023-05-03 09:45:54 -04:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
J. Nick Koston
1c57339ec3
Refactor recorder tests to use recorder history API ( #89565 )
2023-03-11 21:51:16 -05:00
epenet
a0f725dfcb
Add type hints to tests ( #89497 )
2023-03-10 12:06:50 +01:00
Erik Montnemery
390daf1723
Sort unit lists sent to frontend ( #88898 )
2023-02-28 16:12:49 +01:00
Erik Montnemery
b6f66b3568
Add WS command weather/convertible_units ( #85681 )
2023-02-28 11:35:47 +01:00
epenet
aa50096a31
Add type hints to integration tests (part 24) ( #88307 )
2023-02-17 16:34:53 +01:00
Erik Montnemery
9989a4787b
Fix recorder platform tests ( #88330 )
2023-02-17 08:22:15 -06:00
Franck Nijhof
d3ed8de232
Update Ruff to v0.0.247 ( #88210 )
...
* Update Ruff to v0.0.247
* Fix new found violations
2023-02-15 16:46:03 -05:00
Franck Nijhof
e4a78420b8
Enable Ruff PT013 ( #86757 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-01-27 09:09:46 +01:00
Michael
9828b2d13f
Replace the usage of unit constants by enumerations in Tests [v-z] ( #85938 )
...
replace unit conts by enums v-z
2023-01-15 20:14:02 +02:00
Michael
b20eb54800
Replace deprecated unit converter utils ( #85927 )
2023-01-15 14:41:59 +01: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
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
G Johansson
90e1fb6ce2
Weather unit conversion ( #73441 )
...
Co-authored-by: Erik <erik@montnemery.com>
2022-06-23 10:48:30 +02:00
Erik Montnemery
5f2b4001f3
Separate recorder database schema from other classes ( #72977 )
...
* Separate recorder database schema from other classes
* fix logbook imports
* migrate new tests
* few more
* last one
* fix merge
Co-authored-by: J. Nick Koston <nick@koston.org>
2022-06-07 14:41:43 +02:00
Erik Montnemery
28ebab9c5a
Simplify waiting for recorder in tests ( #70647 )
2022-04-25 12:04:47 +02:00
Erik Montnemery
982e314de6
Use recorder_mock in tests ( #70363 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-04-22 19:29:44 -10:00
Franck Nijhof
20f95fa6b3
Exclude weather forecast attribute from recorder ( #69205 )
2022-04-03 20:16:12 +02:00