Prevent use of deprecated units (#83384)

* Prevent use of deprecated units

* Adjust obsolete util

* More units

* Add FREQUENCY

* Adjust pylint ignore

* Add ELECTRIC (current/potential)

* Add TIME

* Adjust units
This commit is contained in:
epenet 2022-12-21 15:24:11 +01:00 committed by GitHub
parent 55133b3a27
commit d6fc2d9452
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 75 additions and 10 deletions

View file

@ -1,5 +1,6 @@
"""Temperature util functions."""
from homeassistant.const import ( # pylint: disable=unused-import # noqa: F401
# pylint: disable-next=unused-import,hass-deprecated-import
from homeassistant.const import ( # noqa: F401
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
TEMP_KELVIN,