Erik Montnemery
fca5cc6ea3
Add number + sensor device class volume storage ( #88312 )
...
* Add number + sensor device class volume storage
* Fix typo
* Format code
* Update device automations
2023-03-01 11:22:57 +01:00
epenet
f2b736fad0
Adjust entity registry access in core platforms ( #88944 )
...
* Adjust entity registry access in platforms
* Adjust more core components
2023-03-01 08:02:16 +01:00
Erik Montnemery
69ce6980d6
Add number + sensor device class energy storage ( #88310 )
...
* Add number + sensor device class energy storage
* Format code
* Update device automations
2023-02-28 19:35:43 +01:00
Erik Montnemery
390daf1723
Sort unit lists sent to frontend ( #88898 )
2023-02-28 16:12:49 +01:00
G Johansson
824a0475ae
Change name to entity_id Number platform error messages ( #87961 )
2023-02-12 22:26:25 +01:00
Erik Montnemery
1450b44c63
Sort manifests 7 ( #87028 )
2023-02-08 20:32:43 +01:00
Marc Mueller
f7b39aa4a8
Add Self typing (3) [mypy 1.0] ( #87600 )
2023-02-06 22:30:07 -06: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
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
SgtBatten
0ccab19d2c
Add Mega Joule as valid unit of energy ( #86055 )
...
* Add Mega joule
* Reorder valid energy types
Alphabetical
* Add Mega Joule
* Add Mega Joule as valid energy unit
* Add Mega Joule
* Add Mega Joule as a Unit of Measurement to Energy
* Update tests
* Update tests
* Update number docstring
Co-authored-by: Roving Ronin <108674933+Roving-Ronin@users.noreply.github.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2023-01-25 14:13:42 +01:00
Erik Montnemery
f327a247a0
Allow a temperature sensor to be in K ( #86073 )
2023-01-25 11:47:52 +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
GitHub Action
03154e1d83
[ci skip] Translation update
2022-12-03 00:21:50 +00:00
GitHub Action
230b50d099
[ci skip] Translation update
2022-11-29 00:26:01 +00: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
Franck Nijhof
2b27cfdabb
Set system & entity integration types ( #79593 )
2022-10-04 10:36:42 -04: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
GitHub Action
32a2999b85
[ci skip] Translation update
2022-08-06 00:24:46 +00:00
Franck Nijhof
7adb0f0ef5
Custom component -> Custom integration ( #75404 )
2022-07-18 22:10:22 +02:00
epenet
5287980f48
Remove template from mypy ignore list ( #74426 )
2022-07-14 21:15:37 +02:00
Erik Montnemery
924dce1b86
Log warning if number entities set _attr_unit_of_measurement ( #74987 )
2022-07-11 17:44:07 +02:00
Erik Montnemery
9d2c213903
Support overriding unit of temperature number entities ( #74977 )
2022-07-11 14:49:36 +02:00
Erik Montnemery
9680a367c8
Prevent using deprecated number features ( #73578 )
2022-06-20 10:26:24 +02:00
Erik Montnemery
dea8041461
Add device_class to MQTT number and migrate to native_value ( #73534 )
2022-06-16 13:34:54 +02:00
Erik Montnemery
2d07cda4e7
Improve number deprecation warnings ( #73552 )
2022-06-16 09:05:13 +02:00
Erik Montnemery
7a82794ad7
Migrate template NumberEntity to native_value ( #73537 )
2022-06-15 17:06:44 +02:00
Erik Montnemery
23fa19b75a
Support restoring NumberEntity native_value ( #73475 )
2022-06-14 10:56:27 -07:00
Erik Montnemery
3da3503673
Add temperature unit conversion support to NumberEntity ( #73233 )
...
* Add temperature unit conversion to number
* Remove type enforcements
* Lint
* Fix legacy unit_of_measurement
* Address review comments
* Fix unit_of_measurement, improve test coverage
2022-06-14 09:40:57 +02:00
epenet
3a0e816f1b
Adjust device_automation type hints in core platforms 2/3 ( #72210 )
2022-05-23 16:02:36 +02:00
Franck Nijhof
7d2deae592
Clean up use of deprecated async_get_registry methods ( #72001 )
2022-05-17 13:40:19 +02:00