Skip to content

Commit

Permalink
rergonise import and black fromat
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Feb 1, 2024
1 parent 27a91e8 commit da94186
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion custom_components/econet300/common_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functionsd used in Econet300 integration,."""

import re


Expand All @@ -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
Expand Down
3 changes: 2 additions & 1 deletion custom_components/econet300/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sensor for Econet300."""

from collections.abc import Callable
from dataclasses import dataclass
import logging
Expand All @@ -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

Expand Down

0 comments on commit da94186

Please sign in to comment.