Commit graph

226 commits

Author SHA1 Message Date
Jaroslav Hanslík
c1e37a4cc3
Fixed native apparent temperature in WeatherEntity (#106645) 2023-12-31 18:56:11 +01:00
Michael
a111e35026 Only check known attributes in significant change support (#106572)
only check known attributes
2023-12-28 20:37:55 +01:00
J. Nick Koston
63f3c23968
Add support for attribute caching to the weather platform (#106334) 2023-12-23 14:28:08 -10:00
Erik Montnemery
3a744d374b
Add support for caching entity properties (#100601) 2023-12-22 09:02:55 -10:00
Michael
c87f2027d4
Use check_valid_float helper in significant change support of sensor and weather (#106013) 2023-12-19 12:31:10 +01:00
Erik Montnemery
104bcc64b7
Allow inheriting base component entity descriptions in frozen dataclasses (#105512)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-15 23:33:50 -10:00
Michael
3310f4c130
Add significant Change support for weather (#104840) 2023-12-05 19:17:52 +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
Kevin Stillhammer
06c9719cd6
Support multiple responses for service calls (#96370)
* add supports_response to platform entity services

* support multiple entities in entity_service_call

* support legacy response format for service calls

* revert changes to script/shell_command

* add back test for multiple responses for legacy service

* remove SupportsResponse.ONLY_LEGACY

* Apply suggestion

Co-authored-by: Allen Porter <allen.porter@gmail.com>

* test for entity_id remove None

* revert Apply suggestion

* return EntityServiceResponse from _handle_entity_call

* Use asyncio.gather

* EntityServiceResponse not Optional

* styling

---------

Co-authored-by: Allen Porter <allen.porter@gmail.com>
2023-11-02 18:37:35 -07: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
Erik Montnemery
df73850f56
Move definition of attributes excluded from history to entity classes (#100430)
* Move definition of attributes excluded from history to entity classes

* Revert change which should be in a follow-up PR

* Fix sun unrecorded attributes

* Fix input_select unrecorded attributes
2023-09-21 15:02: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
Erik Montnemery
c47983621c
Teach CoordinatorWeatherEntity about multiple coordinators (#98830) 2023-08-24 11:28:20 +02:00
Erik Montnemery
68e2809c36
Modernize nws weather (#98748) 2023-08-22 10:01:17 +02:00
Erik Montnemery
3e7ec88703
Add CoordinatorWeatherEntity (#98777) 2023-08-21 23:10:16 +02:00
Erik Montnemery
496a975c58
Set _attr_condition in WeatherEntity (#98459) 2023-08-15 17:17:35 +02:00
Erik Montnemery
f36e75ecf1
Add WeatherEntity.__post_init__ (#98034) 2023-08-08 19:11:55 +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
001dda6345
Fix weather entities with update_before_add (#97950)
Fix weather entities update_before_add
2023-08-07 09:42:20 +02:00
G Johansson
7d8462b11c
Weather remove forecast deprecation (#97292) 2023-07-26 23:12:01 +02:00
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] (#97065) 2023-07-22 17:03:44 -05: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
Erik Montnemery
86a397720f
Move platform_integration_no_support issue to the homeassistant integration (#95927)
* Move platform_integration_no_support issue to the homeassistant integration

* Update test

* Improve repair text

* Update test
2023-07-07 13:31:54 +02:00
G Johansson
91611bbd3b
Add missing apparent temp in forecast (#95108) 2023-06-23 14:49:11 +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
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
G Johansson
c6feb30c31
Raise issue "does not support platform setup" (#93585)
* Raise issue on platform missing

* Modify issue

* Remove deprecation

* Fix strings

* Strings

* Last strings

* strings to common
2023-05-28 21:53:32 +02:00
Franck Nijhof
8ecd73cac7
Add state attribute translations for Weather (#89897) 2023-03-17 20:29:48 -04:00
Franck Nijhof
f9919bb7cf
Add pre-defined entity name translations (#89792) 2023-03-16 21:10:20 +01:00
Franck Nijhof
f32b7859b8
Restructure translations for entity components (#89702) 2023-03-16 12:16:08 +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
Erik Montnemery
6c2702a7b8
Sort manifests 11 (#87032) 2023-02-08 20:10:18 +01:00
Franck Nijhof
939eef3b28
Remove translations from Core (#87543)
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-02-06 15:06:43 +01:00
Franck Nijhof
cf5fca0464
Code styling tweaks to core entity components (#85460) 2023-01-08 13:40:08 -10:00
Franck Nijhof
bdcccd9d83
Improve weather Forecast typing (#85019) 2023-01-06 03:39:37 +01:00
GitHub Action
b3ab0a0199 [ci skip] Translation update 2022-12-29 00:23:20 +00:00
Franck Nijhof
8819634b61
String formatting and max line length - Part 6 (#84525) 2022-12-24 13:19:51 +01:00
GitHub Action
6b858ce8af [ci skip] Translation update 2022-12-17 00:21:18 +00:00
GitHub Action
3ab9a14ce7 [ci skip] Translation update 2022-12-06 00:21:31 +00:00
epenet
4ad9633dfb
Use new unit enums in weather entity (#82937) 2022-11-29 18:10:31 +01:00
epenet
336ea2e7d1
Drop use of is_metric in weather (#80272) 2022-10-14 12:53:56 +02:00
GitHub Action
ed565a6eb1 [ci skip] Translation update 2022-10-09 00:30:44 +00:00
GitHub Action
558b327928 [ci skip] Translation update 2022-10-06 00:31:54 +00:00