diff --git a/custom_components/econet300/common_functions.py b/custom_components/econet300/common_functions.py index 96a93bf..fc1db06 100644 --- a/custom_components/econet300/common_functions.py +++ b/custom_components/econet300/common_functions.py @@ -1,4 +1,5 @@ """Functionsd used in Econet300 integration,.""" + import re @@ -9,7 +10,7 @@ def camel_to_snake(key: str) -> str: def get_key_by_value(search_dict: dict, search_value: str) -> str: - """Get a key from a dict by passing its value""" + """Get a key from a dict by passing its value.""" for key, value in search_dict.items(): if value == search_value: return key diff --git a/custom_components/econet300/sensor.py b/custom_components/econet300/sensor.py index ea8c97c..fddc528 100644 --- a/custom_components/econet300/sensor.py +++ b/custom_components/econet300/sensor.py @@ -1,4 +1,5 @@ """Sensor for Econet300.""" + from collections.abc import Callable from dataclasses import dataclass import logging @@ -20,11 +21,11 @@ ENTITY_PRECISION, ENTITY_UNIT_MAP, ENTITY_VALUE_PROCESSOR, + MIXER_MAP, SENSOR_MAP, SERVICE_API, SERVICE_COORDINATOR, STATE_CLASS_MAP, - MIXER_MAP, ) from .entity import EconetEntity, MixerEntity