Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix black formatting #115

Merged
merged 2 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom_components/kamstrup_403/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
For more details about this integration, please refer to
https://github.com/custom-components/kamstrup_403
"""

from datetime import timedelta
import logging

Expand Down
1 change: 1 addition & 0 deletions custom_components/kamstrup_403/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Adds config flow for Kamstrup 403."""

import logging

from homeassistant import config_entries
Expand Down
1 change: 1 addition & 0 deletions custom_components/kamstrup_403/coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DataUpdateCoordinator for kamstrup_403."""

import logging
from typing import Any, List

Expand Down
1 change: 1 addition & 0 deletions custom_components/kamstrup_403/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sensor platform for kamstrup_403."""

from datetime import datetime

from homeassistant.components.sensor import (
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for kamstrup_403 integration."""

from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
from pytest_homeassistant_custom_component.common import MockConfigEntry
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Global fixtures for kamstrup_403 integration."""

# Fixtures allow you to replace functions with a Mock object. You can perform
# many options via the Mock to reflect a particular behavior from the original
# function that you want to see without going through the function's actual logic.
Expand Down
1 change: 1 addition & 0 deletions tests/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for kamstrup_403 tests."""

from homeassistant.const import CONF_PORT, CONF_SCAN_INTERVAL, CONF_TIMEOUT

# Mock config data to be used across multiple tests
Expand Down
1 change: 1 addition & 0 deletions tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test kamstrup_403 config flow."""

from unittest.mock import patch

from homeassistant import config_entries, data_entry_flow
Expand Down
1 change: 1 addition & 0 deletions tests/test_coordinator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for kamstrup_403 coordinator."""

from homeassistant.core import HomeAssistant

from custom_components.kamstrup_403.const import DOMAIN
Expand Down
1 change: 1 addition & 0 deletions tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test kamstrup_403 setup process."""

from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_manifest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test for versions."""

import json

from custom_components.kamstrup_403.const import DOMAIN, NAME, VERSION
Expand Down
1 change: 1 addition & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests sensor."""

import datetime

from homeassistant.components.sensor import SensorEntityDescription
Expand Down
Loading