core/homeassistant/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 Avoid regex for negative zero check in sensor (#95691) 2023-07-02 21:53:50 -04:00
const.py
device_condition.py Use entity registry id in sensor device conditions (#95260) 2023-06-26 21:20:40 +02:00
device_trigger.py Teach sensor device trigger about entity registry ids (#94988) 2023-06-22 11:13:54 +02:00
group.py
helpers.py
manifest.json
recorder.py
significant_change.py
strings.json Revert "Change the device class name `volatile organic compounds parts` to `VOCs ratio`" (#95332) 2023-06-27 12:28:31 +02:00
websocket_api.py