mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 04:05:06 +02:00
Add pylint CodeStyle extension (#53147)
This commit is contained in:
@@ -91,13 +91,13 @@ class UnitSystem:
|
||||
"""Initialize the unit system object."""
|
||||
errors: str = ", ".join(
|
||||
UNIT_NOT_RECOGNIZED_TEMPLATE.format(unit, unit_type)
|
||||
for unit, unit_type in [
|
||||
for unit, unit_type in (
|
||||
(temperature, TEMPERATURE),
|
||||
(length, LENGTH),
|
||||
(volume, VOLUME),
|
||||
(mass, MASS),
|
||||
(pressure, PRESSURE),
|
||||
]
|
||||
)
|
||||
if not is_valid_unit(unit, unit_type)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user