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
async_.py
color.py
decorator.py Improve typing [util.decorator] (#67087) 2022-02-23 20:58:42 +01:00
distance.py
dt.py
executor.py Remove ThreadPoolExecutor `shutdown` backport (#66735) 2022-02-17 10:39:33 -06:00
file.py
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
pressure.py
process.py
read_only_dict.py Make TypeVars private (1) (#68205) 2022-03-17 18:52:38 +01:00
speed.py
ssl.py
temperature.py Allow customizing unit for temperature and pressure sensors (#64366) 2022-03-30 15:43:04 +02:00
thread.py
timeout.py
unit_system.py Add type ignore error codes [util] (#66777) 2022-02-18 11:30:59 +01:00
uuid.py
volume.py