J. Nick Koston
0f29fd3e10
Switch to using fast cached_property implementation in propcache ( #127339 )
2024-10-03 13:11:02 -05:00
epenet
2699eb62bd
Rename DOMAIN_DATA HassKey constants to DATA_COMPONENT ( #126746 )
...
* Rename DOMAIN_DATA HassKey constant to DATA
* DATA -> DATA_COMPONENT
2024-09-25 15:53:58 +02:00
epenet
1b4ba68e18
Use HassKey in weather ( #126329 )
2024-09-21 13:15:42 +02:00
epenet
88cacbc898
Expose component constants for llm helper ( #125891 )
...
* Expose climate INTENT_GET_TEMPERATURE
* Expose conversation trace items
* More fixes for llm helper
2024-09-13 12:43:37 +02:00
epenet
e812b0e02f
Cleanup unnecessary returns ( #121652 )
2024-07-10 15:11:56 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms ( #120564 )
2024-06-26 15:44:59 +02:00
Jan Bouwhuis
66faeb28d7
Fix late group platform registration ( #119789 )
...
* Fix late group platform registration
* use a callback instead
* Run thread safe
* Not working domain filter
* Also update if a group has nested group's
* Only update if the siingle state type key could change
* Avoid redundant regisister hooks
* Use set, add comment
* Revert changes
* Keep callback cleanup const
* Cleanup after dependencies
* Preimport and cleanup excluded domains
* Revert test changes as we assume early set up now
* Migrate alarm_control_panel
* Migrate climate
* Migrate cover
* Migrate device_tracker
* Migrate lock
* Migrate media_player
* Migrate person
* Migrate plant
* Migrate vacuum
* Migrate water_heater
* Remove water_heater group_pre_import
* Use Platform enum if possible
* Also use platform enum for excluded domains
* Set registry to self._registry
* move deregistering call back hook to async_added_to_hass
* Add comment
* Do no pass mutable reference to EXCLUDED_DOMAINS
* Remove unneeded type hint
2024-06-18 20:01:16 +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
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
Marc Mueller
f9d95efac0
Improve CoordinatorWeatherEntity generic typing ( #116760 )
2024-05-04 14:02:23 +02:00
Sean Chen
ac0eabad9f
Fix UpdateCoordinator types in CoordinatorWeatherEntity constructor ( #116747 )
2024-05-04 10:32:37 +02:00
J. Nick Koston
d9617a8e3a
Enable eager_start for weather platform update ( #115496 )
2024-04-13 15:56:14 -05:00
J. Nick Koston
29bc67234e
Make eager_start default to True for config entry async_create_task ( #115047 )
2024-04-06 11:22:02 -10:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +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
Sid
6ee273a548
Clean up unneeded ruff noqa directives ( #113616 )
2024-03-16 09:48:37 -10:00
J. Nick Koston
c3b5e819c5
Fix group loading too late resulting in incorrect state ( #113262 )
2024-03-13 19:18:15 -10:00
Marc Mueller
c773d57d39
Add empty line after module docstring [w-z] ( #112706 )
2024-03-08 10:35:45 -05:00
Jaroslav Hanslík
e83aa86426
Fixed native apparent temperature in WeatherEntity ( #106645 )
2023-12-29 18:37:46 +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
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
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
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
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
Erik Montnemery
b6f66b3568
Add WS command weather/convertible_units ( #85681 )
2023-02-28 11:35:47 +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
Franck Nijhof
8819634b61
String formatting and max line length - Part 6 ( #84525 )
2022-12-24 13:19:51 +01:00
epenet
4ad9633dfb
Use new unit enums in weather entity ( #82937 )
2022-11-29 18:10:31 +01:00