5b2816e56c
Fix line length violations in tests/components s ( #170990 )
...
Co-authored-by: Simone Chemelli <[email protected] >
2026-05-17 17:14:26 -04:00
epenet and GitHub
88525955ce
Remove import annotations from tests ( #169527 )
2026-04-30 09:30:46 +02:00
ec18e0c6d4
Add uptime device class to the sensor platform ( #164266 )
...
Co-authored-by: Copilot <[email protected] >
2026-04-24 16:18:17 +01:00
Lamarqe and GitHub
566ff6d1d5
Add frequency unit conversion ( #167537 )
2026-04-09 17:16:02 +02:00
Sab44 and GitHub
a6dd56eed0
Add custom equivalent units to recorder platform ( #164893 )
2026-03-25 09:42:45 +01:00
Abílio Costa and GitHub
fd78e35a86
Align number unit converters with sensor ( #162662 )
2026-02-11 23:07:04 +01:00
Gage Benne and GitHub
d481c1bcc5
Improve accuracy of blood glucose conversion factor ( #161644 )
2026-02-02 12:19:16 +01:00
Jan Bouwhuis and GitHub
72e6ca55ba
Fix use of ambiguous units for reactive power and energy ( #161810 )
2026-01-29 20:34:09 +01:00
Thomas55555 and GitHub
78212245dd
Add ppb as a valid UOM for sensor/number NO device class ( #161379 )
2026-01-22 11:34:29 +01:00
b40046264d
Add ppb as a valid UOM for sensor/number Ozone device class ( #159328 )
...
Co-authored-by: epenet <[email protected] >
2026-01-21 08:32:23 +01:00
27117c9d17
Add ppb as a valid UOM for sensor/number NO2 device class ( #159426 )
...
Co-authored-by: Abílio Costa <[email protected] >
2026-01-20 22:35:11 +00:00
Erik Montnemery and GitHub
deefcbcbe4
Remove stub_blueprint_populate test fixture ( #161288 )
2026-01-20 15:46:06 +01:00
Thomas55555 and GitHub
48852bab7a
Add ppb as a valid UOM for sensor/number SO2 device class ( #159431 )
2026-01-19 23:32:45 +00:00
Paul Tarjan and GitHub
01f498f239
Clarify previous state in total_increasing warning message ( #158805 )
2025-12-13 11:15:37 +01:00
Erik Montnemery and GitHub
f0e4296d93
Use pytest.mark.freeze_time in sensor tests ( #156349 )
2025-11-11 13:05:52 +01:00
Erik Montnemery and GitHub
a020a32d8a
Remove translations from WS get_services and REST /api/services ( #147120 )
2025-10-23 17:26:33 +02:00
krahabb and GitHub
afeaf2409f
Add TEMPERATURE_DELTA device class to Number and Sensor entities ( #147358 )
2025-10-15 11:49:12 +02:00
Domochip and GitHub
8464dad8e0
Add milliPascal (mPa) as unit of measurement for Pressure ( #153087 )
2025-10-14 12:38:14 +01:00
Erik Montnemery and GitHub
fbf875b5af
Deprecate has_mean in favor of mean_type in recorder statistic API ( #154093 )
2025-10-14 13:34:25 +02:00
Marc Mueller and GitHub
1e5f5f4ad3
Enable pylint consider-math-not-float check ( #154338 )
2025-10-13 21:14:57 +02:00
Erik Montnemery and GitHub
a3b67d5f28
Add support to sensor statistics for changing unit_class ( #154130 )
2025-10-13 12:35:10 +01:00
epenet and GitHub
b25622f40e
Use SI constants in CO unit converter ( #153187 )
2025-10-10 14:59:20 +02:00
ee67619cb1
Add mg/m³ as a valid UOM for sensor/number Carbon Monoxide device class ( #154074 )
...
Co-authored-by: Copilot <[email protected] >
Co-authored-by: Abílio Costa <[email protected] >
2025-10-10 11:31:31 +01:00
Erik Montnemery and GitHub
951978e483
Include unit class in units_changed statistics issue ( #154069 )
2025-10-10 10:50:40 +03:00
Erik Montnemery and GitHub
d45114cd11
Improve unit handling in recorder ( #153941 )
2025-10-09 10:29:42 +02:00
Dave T and GitHub
1a0abe296c
Remove deprecated conductivity constants ( #153942 )
2025-10-07 23:20:36 +01:00
Erik Montnemery and GitHub
1cd1b1aba8
Remove to_native method from recorder database schemas ( #153334 )
2025-10-01 21:25:05 +02:00
Erik Montnemery and GitHub
7f63ba2087
Improve saved state of RestoreSensor when using freezegun ( #152740 )
2025-09-30 18:27:56 +02:00
Erik Montnemery and GitHub
5975cd6e09
Revert "Add mg/m³ as a valid UOM for sensor/number Carbon Monoxide device class" ( #153196 )
2025-09-29 15:43:13 +01:00
Abílio Costa and GitHub
b26b1df143
Fix unitless converter missing valid units ( #152665 )
2025-09-22 15:19:31 +01:00
ec148e0459
Add PM4 (particulates < 4μm) sensor and number device classes ( #112867 )
...
Co-authored-by: Erik Montnemery <[email protected] >
Co-authored-by: J. Nick Koston <[email protected] >
2025-09-19 08:12:09 -06:00
Jan Bouwhuis and GitHub
5eef6edded
Add mg/m³ as a valid UOM for sensor/number Carbon Monoxide device class ( #152456 )
2025-09-17 22:04:23 +01:00
Alessandro Manighetti and GitHub
eb4a873c43
Add m/min of speed sensors ( #146441 )
2025-09-16 18:02:22 +02:00
Bram Gerritsen and GitHub
a3a4433d62
Add missing unit conversion for BTU/h ( #152300 )
2025-09-14 19:00:44 +02:00
4c22264b13
Add support for inH₂O pressure unit ( #148289 )
...
Co-authored-by: Erik Montnemery <[email protected] >
2025-09-12 11:24:45 +02:00
Joost Lekkerkerker and GitHub
e3c0cfd1e2
Enable RUF059 and fix violations ( #152071 )
2025-09-10 21:16:09 +02:00
epenet and GitHub
56c865dcfe
Fix _is_valid_suggested_unit in sensor platform ( #151912 )
2025-09-08 16:35:33 +02:00
Mike Kelly and GitHub
1cca65b5c5
Add MCF (1000 Cubic Feet) as an alternate unit of measure for volume ( #150015 )
2025-09-04 09:29:37 +03:00
48300f4563
Use greek small letter mu "\u03bc" instead of micro sign "\u00B5" for micro unit prefix (alt 1) ( #144853 )
...
Co-authored-by: Erik Montnemery <[email protected] >
2025-08-19 18:48:50 +02:00
Matthias Alphart and GitHub
63640af4d4
Update voluptuous-serialize to 2.7.0 ( #150822 )
2025-08-19 16:42:49 +02:00
Ludovic BOUÉ and GitHub
cc4b9e0eca
Extend UnitOfReactivePower with 'mvar' ( #150415 )
2025-08-14 11:46:06 +02:00
eb4b75a9a7
Extend UnitOfApparentPower with 'mVA' ( #150422 )
...
Co-authored-by: Martin Hjelmare <[email protected] >
2025-08-13 15:56:04 +02:00
Michael and GitHub
50047f0a4e
Add new device class for absolute humidity ( #148567 )
2025-07-14 11:46:17 +02:00
Abílio Costa and GitHub
0cce4d1b81
Test all device classes in Sensor device condition/trigger tests ( #146366 )
2025-06-09 14:22:58 +01:00
epenet and GitHub
de4a5fa30b
Remove unnecessary DOMAIN alias in tests (s-z) ( #146010 )
2025-06-02 08:48:37 +02:00
epenet and GitHub
c3ade400fb
Use Platform constant in tests ( #145801 )
...
* Use Platform constant in tests
* spelling
* Fix platform
2025-05-28 15:51:37 +02:00
Abílio Costa and GitHub
b626204f63
Add default device class display precision for Sensor ( #145013 )
...
* Add default device class display precision for Sensor
* Renaming, docstrings, cleanup
* Simplify units list
* Fix tests
* Fix missing precision when suggested is specified
* Update snapshots
* Fix when unit of measurement is not valid
* Fix tests
* Fix deprecated unit usage
* Fix goalzero tests
The sensor native_value method was accessing the data dict and trowing,
since the mock did not have any data for the sensors.
Since now the precision is always specified (it was missing for those
sensors), the throw was hitting async_update_entity_options in _update_suggested_precision.
Previously, async_update_entity_options was not called since it had no
precision.
* Fix metoffice
* Fix smartthings
* Add default sensor data for Tesla Wall Connector tests
* Update snapshots
* Revert spaces
* Update smartthings snapshots
* Add missing sensor mock for tesla wall connector
* Address review comments
* Add doc comment
* Add cap to doc comment
* Update comment
* Update snapshots
* Update comment
2025-05-26 19:40:29 +02:00
Abílio Costa and GitHub
54dce53628
Add sensor tests for device class enums ( #145523 )
2025-05-26 14:28:30 +01:00
alorente and GitHub
1d47dc41c9
Add reactive energy device class and units ( #143941 )
2025-05-15 12:05:46 +01:00
Robert Resch and GitHub
64e1735647
Fix circular mean by always storing and using the weighted one ( #142208 )
...
* Fix circular mean by always storing and using the weighted one
* fix
* Fix test
2025-04-04 21:19:15 +02:00