core/tests/components/sensor
J. Nick Koston b24c6adc75
Avoid regex for negative zero check in sensor (#95691)
* Avoid regex for negative zero check in sensor

We can avoid calling the regex for every sensor value
since most of the time values are not negative zero

* tweak

* tweak

* Apply suggestions from code review

* simpler

* cover

* safer and still fast

* safer and still fast

* prep for py3.11

* fix check

* add missing cover

* more coverage

* coverage

* coverage
2023-07-02 21:53:50 -04:00
..
__init__.py
test_device_condition.py Use entity registry id in sensor device conditions (#95260) 2023-06-26 21:20:40 +02:00
test_device_trigger.py Teach sensor device trigger about entity registry ids (#94988) 2023-06-22 11:13:54 +02:00
test_helpers.py
test_init.py Avoid regex for negative zero check in sensor (#95691) 2023-07-02 21:53:50 -04:00
test_recorder.py Update sensor tests to avoid patching utcnow (#93497) 2023-05-24 19:54:08 -05:00
test_significant_change.py
test_websocket_api.py Sort unit lists sent to frontend (#88898) 2023-02-28 16:12:49 +01:00