mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 10:59:40 +00:00
Deprecate CONF_UNIT_SYSTEM_*** constants (#80320)
* Deprecate CONF_UNIT_SYSTEM_*** constants
* Adjust pylint plugin
* Add tests
* Remove single-use function
* Revert logic change
* Revert "Revert logic change"
This reverts commit 60959a0050.
* Tweak again
This commit is contained in:
@@ -396,7 +396,9 @@ ATTR_ICON: Final = "icon"
|
||||
ATTR_UNIT_OF_MEASUREMENT: Final = "unit_of_measurement"
|
||||
|
||||
CONF_UNIT_SYSTEM_METRIC: Final = "metric"
|
||||
"""Deprecated: please use a local constant."""
|
||||
CONF_UNIT_SYSTEM_IMPERIAL: Final = "imperial"
|
||||
"""Deprecated: please use a local constant."""
|
||||
|
||||
# Electrical attributes
|
||||
ATTR_VOLTAGE: Final = "voltage"
|
||||
|
||||
Reference in New Issue
Block a user