core/homeassistant/util
Erik Montnemery 91f6e58e9a
Allow customizing unit for temperature and pressure sensors (#64366)
* Allow customizing unit for temperature and pressure sensors

* pylint

* Adjust google_wifi tests

* Address review comments and add tests

* Improve rounding when scaling

* Tweak rounding

* Further tweak rounding

* Allow setting entity options with config/entity_registry/update

* Address review comments

* Tweak tests

* Load custom unit when sensor is added

* Override async_internal_added_to_hass

* Adjust tests after rebase

* Apply suggestions from code review

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>

* Address review comments

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-03-30 15:43:04 +02:00
..
yaml Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
__init__.py Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
aiohttp.py Revert fix MultiDict typing with multidict-6.0.0 (#64733) (#64792) 2022-01-23 23:22:16 +01:00
async_.py Improve `util.async_` typing (#66510) 2022-02-14 15:41:09 +01:00
color.py Add coverage for color_rgbww_to_rgb, fix divzero case (#65721) 2022-02-05 10:59:32 -06:00
decorator.py Improve typing [util.decorator] (#67087) 2022-02-23 20:58:42 +01:00
distance.py Import Callable from collections.abc (1) (#56775) 2021-09-29 16:32:11 +02:00
dt.py Remove `backports.zoneinfo` dependency (#65069) 2022-01-27 09:59:27 -08:00
executor.py Remove ThreadPoolExecutor `shutdown` backport (#66735) 2022-02-17 10:39:33 -06:00
file.py Use atomicwrites for mission critical core files (#59606) 2021-11-15 11:19:31 +01:00
json.py Add type ignore error codes [util] (#66777) 2022-02-18 11:30:59 +01:00
location.py Update whoami URL (#67793) 2022-03-07 11:11:25 +01:00
logging.py Add type ignore error codes [last ones] (#66816) 2022-02-18 18:15:57 +01:00
network.py Improve error handling process_play_media_url (#68322) 2022-03-20 20:25:15 -07:00
package.py Add type ignore error codes [util] (#66777) 2022-02-18 11:30:59 +01:00
percentage.py Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
pil.py Update typing 03 (#48015) 2021-03-17 21:46:07 +01:00
pressure.py Add support for converting to and from mmHg (#64844) 2022-01-24 22:57:56 +01:00
process.py Move `disallow-any-generics` to mypy.ini (#63917) 2022-01-11 13:33:25 -08:00
read_only_dict.py Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
speed.py Add speed conversion function & add speed to units system (#53846) 2021-11-09 08:12:28 +01:00
ssl.py
temperature.py Allow customizing unit for temperature and pressure sensors (#64366) 2022-03-30 15:43:04 +02:00
thread.py Ensure shutdown does not deadlock (#49282) 2021-04-18 08:55:51 -10:00
timeout.py Rewrite of not a == b occurances (#48132) 2021-03-20 01:27:04 +01:00
unit_system.py Add type ignore error codes [util] (#66777) 2022-02-18 11:30:59 +01:00
uuid.py
volume.py Add device class `gas` and enable statistics for it (#54110) 2021-08-11 09:58:19 -07:00