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
94df0bd5ab
Use HassKey in core components (d-z) ( #126324 )
...
* Use HassKey in core components (d-s)
* Add
* Undo light
* Undo device_tracker
* Undo notify
* Undo sensor
* Undo stt
* Improve
2024-09-21 13:10:14 +02:00
epenet
f65d91f6d2
Refactor PLATFORM_SCHEMA imports in platforms ( #120564 )
2024-06-26 15:44:59 +02:00
J. Nick Koston
c368ffffd5
Add async_get_hass_or_none ( #118164 )
2024-05-26 13:38:46 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
Jan Bouwhuis
acf2f855fe
Raise ServiceValidationError on number out of range exception ( #114589 )
2024-04-02 12:22:00 +02:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00
Marc Mueller
988c71ecc5
Add empty line after module docstring [n-q] ( #112702 )
2024-03-08 15:04:07 +01:00
J. Nick Koston
05d205ae7a
Small cleanups to number entity ( #107624 )
2024-01-08 20:20:15 -10:00
J. Nick Koston
e43f4412fa
Fix native_step in number not looking at _attr_native_step ( #106327 )
2023-12-23 13:20:24 -10:00
J. Nick Koston
5d2ddcb1d2
Add support for attribute caching to the number platform ( #106254 )
2023-12-22 15:22:18 -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
J. Nick Koston
b980ed3eac
Avoid more device_class lookups for number entities when writing state ( #102381 )
2023-10-22 23:55:13 +02:00
J. Nick Koston
c408b60e4e
Reduce internal property lookups needed to write number entity state ( #102281 )
2023-10-19 06:30:20 -10:00
Erik Montnemery
62ea4b36cd
Use loader.async_suggest_report_issue in number ( #101388 )
2023-10-05 20:08:22 +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
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
Marc Mueller
77f38e33e5
Import names from typing instead of typing_extensions [3.11] ( #97065 )
2023-07-22 17:03:44 -05:00
Erik Montnemery
24ea865553
Fix a couple of typos ( #95441 )
2023-06-28 14:37:13 +02:00
J. Nick Koston
c6b3d538de
Remove deprecated non-native number support ( #95178 )
...
* Remove deprecated non-native number support
These were scheduled to be removed in 2022.10 but were left
in to give custom component authors a bit more time.
Its been a year since they were deprecated so its time
to remove the old code
https://developers.home-assistant.io/blog/2022/06/14/number_entity_refactoring/
* strip unneeded change from testing
2023-06-24 23:01:44 -04:00
Franck Nijhof
e68916b2fc
Name unnamed numbers by their device class ( #95083 )
2023-06-22 23:48:49 +02:00
rrooggiieerr
7b8936b420
Add support for setting NumberMode using NumberEntityDescription ( #92427 )
2023-05-04 21:41:32 +02:00
G Johansson
824a0475ae
Change name to entity_id Number platform error messages ( #87961 )
2023-02-12 22:26:25 +01:00
Marc Mueller
f7b39aa4a8
Add Self typing (3) [mypy 1.0] ( #87600 )
2023-02-06 22:30:07 -06:00
Franck Nijhof
e55f11296e
Fix accidentally introduced breaking change in number entity ( #87383 )
2023-02-04 14:32:33 +01:00
Franck Nijhof
9ead071202
Tiny cleanup in Number base entity ( #87339 )
2023-02-04 10:04:44 +01:00
Erik Montnemery
a7fb3c82fb
Add WS command number/device_class_convertible_units ( #85598 )
...
* Add WS command number/device_class_convertible_units
* Add websocket_api
* Update tests
2023-01-12 09:34:10 +01:00
Franck Nijhof
cf5fca0464
Code styling tweaks to core entity components ( #85460 )
2023-01-08 13:40:08 -10:00
Erik Montnemery
c1075ebb8c
Allow SensorDeviceClass.POWER_FACTOR unit None ( #85181 )
2023-01-05 11:03:37 +01:00
epenet
e7e1a7d46e
Clarify NumberDeviceClass.PRECIPITATION docstring ( #85051 )
2023-01-03 12:31:01 +01:00
SukramJ
005bc8994d
Add mA to SensorDeviceClass.CURRENT units ( #84492 )
...
fixes undefined
2022-12-30 13:55:14 +01:00
Jan Bouwhuis
b2388b74d9
Add mV as a unit for voltage and enable conversions ( #84805 )
...
fixes undefined
2022-12-30 12:51:05 +01:00
epenet
4c8e3aa7c4
Remove lumen from Illuminance units ( #84386 )
2022-12-27 14:25:47 +01:00
Franck Nijhof
baef267f33
String formatting and max line length - Part 3 ( #84394 )
2022-12-22 13:35:47 +01:00
epenet
d60fe7e7cd
Use UnitOfTemperature in integrations (n-o) ( #84306 )
2022-12-20 18:39:09 +01:00
epenet
f4c13645d2
Add support for CCF volume unit ( #84029 )
2022-12-19 14:57:04 +01:00
epenet
b172abaeeb
Add new atmospheric pressure device class ( #83455 )
...
* Add new atmospheric pressure device class
* Translations
* Automatic conversion
* Convert all pressure units
2022-12-09 08:02:53 +01:00
epenet
38f62ae622
Add new sound pressure device class ( #83453 )
...
* Add new sound pressure device class
* Translations
* Docstring
* Adjust unit
2022-12-08 19:46:03 +01:00
epenet
c4326ed1ef
Add new irradiance device class ( #83452 )
2022-12-08 18:44:23 +01:00
epenet
9987f7a125
Add new data rate device class ( #83377 )
2022-12-08 18:20:05 +01:00
epenet
25961d71ef
Add new data size device class ( #83376 )
2022-12-08 16:47:36 +01:00
Franck Nijhof
ba0d6fe611
Enforce NumberDeviceClass in number entities ( #83402 )
2022-12-06 14:58:22 +01:00
epenet
b8613ec09d
Allow cm in precipitation units ( #83360 )
...
* Use new device class in zamg
* Adjust docstring
* Undo component changes
2022-12-06 10:34:58 +01:00
epenet
dd960c4e62
Add precipitation device class ( #81145 )
2022-11-18 12:41:33 +01:00
Erik Montnemery
b6586d5c34
Align number and sensor device classes ( #81909 )
...
* Align number and sensor device classes
* Add tests
* Tweak tests
2022-11-17 14:00:28 +01:00
epenet
6002377d4f
Convert UnitConverter protocol to a class ( #78934 )
...
* Convert UnitConverter protocl to a class
* Remove logic change
* Use TypeVar
* Remove NORMALIZED_UNIT from pressure
* Reduce size of PR
* Reduce some more
* Once more
* Once more
* Remove DEVICE_CLASS
2022-09-22 14:15:22 +02:00
epenet
39315b7fe3
Introduce UnitConverter protocol ( #78888 )
...
* Introduce ConversionUtility
* Use ConversionUtility in number
* Use ConversionUtility in sensor
* Use ConversionUtility in sensor recorder
* Add normalise to ConversionUtility
* Revert changes to recorder.py
* Reduce size of PR
* Adjust recorder statistics
* Rename variable
* Rename
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
* Apply suggestion
Co-authored-by: Erik Montnemery <erik@montnemery.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-09-22 07:18:00 +02:00
epenet
b56eabc35b
Enable disallow-any-generics in number ( #78502 )
2022-09-15 11:58:24 +02:00
Franck Nijhof
7adb0f0ef5
Custom component -> Custom integration ( #75404 )
2022-07-18 22:10:22 +02:00