From c6b47e40b5ee97242111aca0de193cf6a7f7d514 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 12 Sep 2023 21:24:45 +0100 Subject: [PATCH] Fix linting errors Follows up 65e2f33dfcf7b3a8ef4eecd065cfe9c321e6cad9 for one issue --- .github/workflows/constraints.txt | 2 +- custom_components/myenergi/sensor.py | 13 +++++++------ requirements_dev.txt | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt index 979b1ff..020c6a1 100644 --- a/.github/workflows/constraints.txt +++ b/.github/workflows/constraints.txt @@ -2,4 +2,4 @@ pip==23.1.2 pre-commit==3.3.3 black==23.7.0 flake8==6.0.0 -reorder-python-imports==3.10.0 \ No newline at end of file +reorder-python-imports==3.10.0 diff --git a/custom_components/myenergi/sensor.py b/custom_components/myenergi/sensor.py index 93f18b8..18766d2 100644 --- a/custom_components/myenergi/sensor.py +++ b/custom_components/myenergi/sensor.py @@ -446,12 +446,13 @@ async def async_setup_entry(hass, entry, async_add_devices): coordinator, device, entry, - create_meta("Active Heater", - "active_heater", - None, - None, - None, - "mdi:fraction-one-half", + create_meta( + "Active Heater", + "active_heater", + None, + None, + None, + "mdi:fraction-one-half", ), ) ) diff --git a/requirements_dev.txt b/requirements_dev.txt index 0b86cef..3f27851 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -4,4 +4,4 @@ flake8==6.0.0 reorder-python-imports==3.10.0 homeassistant pymyenergi -pytest \ No newline at end of file +pytest