Erik Montnemery
5836f8edb5
Pass None instead of empty dict when registering entity services ( #123879 )
...
* Pass None instead of empty dict when registering entity services
* Update rainmachine
2024-08-15 10:11:43 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms ( #120564 )
2024-06-26 15:44:59 +02:00
epenet
960d1289ef
Avoid references to websocket_api.const in core and other components ( #119285 )
2024-06-10 13:49:44 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
Sid
6587ee20db
Enable Ruff TRY300 ( #114437 )
...
* Enable Ruff TRY300
* Update validation.py
* Address review comments
2024-03-30 10:37:59 +01:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
Marc Mueller
062cc4bfce
Add empty line after module docstring [t-v] ( #112705 )
2024-03-08 10:35:23 -05:00
Joakim Sørensen
6da82cf07e
Use supported_features_compat in update.install service ( #107224 )
2024-01-05 10:38:54 +01:00
J. Nick Koston
4b6aaf6254
Update platform back-compat for custom components without UpdateEntityFeature ( #106528 )
2023-12-28 14:10:26 -10:00
J. Nick Koston
7a2a99db2e
Use faster contains check in update ( #106436 )
2023-12-27 08:45:51 +01:00
J. Nick Koston
5156a93b9e
Add support for attribute caching to the update platform ( #106261 )
2023-12-23 10:29:55 +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
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
Erik Montnemery
d1afcd773f
Revert "Cache entity properties that are never expected to change in the base class" ( #100422 )
...
Revert "Cache entity properties that are never expected to change in the base class (#95315 )"
This reverts commit 042776ebb8
.
2023-09-15 11:25:24 +02:00
J. Nick Koston
042776ebb8
Cache entity properties that are never expected to change in the base class ( #95315 )
2023-09-14 17:48:48 -05:00
Robert Resch
790523126e
Name unnamed update entities by their device class ( #98579 )
2023-08-18 13:40:35 +02:00
Franck Nijhof
30058297cf
Migrate backported StrEnum to built-in StrEnum ( #97101 )
2023-07-23 23:19:24 +02:00
J. Nick Koston
e2394b34bd
Cache version compare in update entity ( #96978 )
2023-07-21 08:56:34 +02:00
J. Nick Koston
70c88a125c
Reduce attribute lookups in update state_attributes ( #96511 )
2023-07-17 17:47:36 +02:00
Erik Montnemery
4085c4f6d8
Tweak typing of Entity.platform ( #88321 )
...
* Tweak typing of Entity.platform
* Fix mypy errors
* Fix update test
* Improve comments
2023-06-09 10:56:04 +02:00
G Johansson
8c00f435a6
Change name to entity_id update platform error messages ( #87960 )
2023-02-12 22:18:09 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ( #87792 )
...
* Move EntityCategory to homeassistant.const
* Fix more imports
2023-02-09 20:15:37 +01:00
Shay Levy
857df05308
Add Shelly Gen2 update entity for sleeping devices ( #86837 )
2023-01-30 19:05:13 +02:00
Franck Nijhof
cf5fca0464
Code styling tweaks to core entity components ( #85460 )
2023-01-08 13:40:08 -10:00
Franck Nijhof
91cf2e2792
Remove str from update device class ( #83399 )
2022-12-06 14:50:19 +01:00
epenet
ab26ea06b9
Enforce UpdateEntityFeature ( #82465 )
2022-11-22 07:16:53 +01:00
epenet
3be750812d
Adjust type hints for UpdateEntityFeature ( #82268 )
2022-11-17 15:17:50 +01:00
epenet
19ea95a6e4
Enable disallow-any-generics in update ( #78501 )
2022-09-15 11:29:11 +02:00
Franck Nijhof
f84c33203b
Fix update entity not sticking with skipped version ( #70779 )
2022-04-26 07:50:32 -07:00
Franck Nijhof
d65e12ab6e
Add clear_skipped service to update entity ( #70116 )
2022-04-19 16:11:16 +02:00
J. Nick Koston
1a9420dda0
Try exact match first for update state ( #69335 )
...
- Exact matches are much cheaper than creating an AwesomeVersion
and calling the __gt__ method, and since most of the time the
result is expected to be off, we want to optimize for this case
2022-04-05 15:51:25 +02:00
Franck Nijhof
b644e7ed0f
Set brand icon as entity picture on update entities ( #69200 )
...
Co-authored-by: Joakim Sørensen <ludeeus@ludeeus.dev>
2022-04-03 20:38:05 +02:00
Franck Nijhof
c31e788439
Rename current_version to installed_version in Update platform ( #69093 )
2022-04-01 20:11:17 +02:00
Joakim Sørensen
a81194cdd7
Add auto_update property to UpdateEntity ( #69054 )
2022-04-01 12:56:58 +02:00
Paulus Schoutsen
130ca2213f
Enforce EntityCategory enum ( #69015 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev>
2022-03-31 15:04:33 -07:00
Joakim Sørensen
6d168d2672
Do not mark downgrades as updates ( #68893 )
2022-03-30 09:34:29 -07:00
Joakim Sørensen
9a150c2234
Add release_notes method to update entities ( #68842 )
2022-03-29 17:38:56 -07:00
Franck Nijhof
44d3a7e459
Adjust backup type of Update entity ( #68553 )
2022-03-23 11:20:04 +01:00
Franck Nijhof
2424564d2c
Change update default entity category based on features ( #68455 )
2022-03-21 14:35:40 +01:00
Franck Nijhof
073fb40b79
Add update entity platform ( #68248 )
...
Co-authored-by: Glenn Waters <glenn@watrs.ca>
2022-03-21 11:02:48 +01:00
Joakim Sørensen
6b3b21bcfd
Revert "Add update integration ( #66552 )" ( #67641 )
2022-03-07 15:52:15 -08:00
Joakim Sørensen
1a78e18eeb
Add update integration ( #66552 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-03 08:27:09 -08:00