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 liniting error in pre-commit checks #114

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

For more details about this integration, please refer to
https://github.com/agittins/bermuda
"""
""" # fmt: skip
from __future__ import annotations

import asyncio
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Binary sensor platform for Bermuda BLE Trilateration."""
"""Binary sensor platform for Bermuda BLE Trilateration.""" # fmt: skip
from homeassistant.components.binary_sensor import BinarySensorEntity

from .const import BINARY_SENSOR
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Adds config flow for Bermuda BLE Trilateration."""
"""Adds config flow for Bermuda BLE Trilateration.""" # fmt: skip
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components import bluetooth
Expand Down
8 changes: 4 additions & 4 deletions custom_components/bermuda/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Constants for Bermuda BLE Trilateration."""
"""Constants for Bermuda BLE Trilateration.""" # fmt: skip
# Base component constants
NAME = "Bermuda BLE Trilateration"
DOMAIN = "bermuda"
Expand Down Expand Up @@ -56,9 +56,9 @@
DOCS[CONF_MAX_RADIUS] = "For simple area-detection, max radius from receiver"

CONF_DEVTRACK_TIMEOUT, DEFAULT_DEVTRACK_TIMEOUT = "devtracker_nothome_timeout", 30
DOCS[
CONF_DEVTRACK_TIMEOUT
] = "Timeout in seconds for setting devices as `Not Home` / `Away`."
DOCS[CONF_DEVTRACK_TIMEOUT] = (
"Timeout in seconds for setting devices as `Not Home` / `Away`."
)

CONF_ATTENUATION, DEFAULT_ATTENUATION = "attenuation", 3
DOCS[CONF_ATTENUATION] = "Factor for environmental signal attenuation."
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/device_tracker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Create device_tracker entities for Bermuda devices"""
"""Create device_tracker entities for Bermuda devices""" # fmt: skip
from __future__ import annotations

import logging
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""BermudaEntity class"""
"""BermudaEntity class""" # fmt: skip
from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Sensor platform for Bermuda BLE Trilateration."""
"""Sensor platform for Bermuda BLE Trilateration.""" # fmt: skip
from collections.abc import Mapping
from typing import Any

Expand Down
2 changes: 1 addition & 1 deletion custom_components/bermuda/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Switch platform for Bermuda BLE Trilateration."""
"""Switch platform for Bermuda BLE Trilateration.""" # fmt: skip
from homeassistant.components.switch import SwitchEntity

from .const import DEFAULT_NAME
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Global fixtures for Bermuda BLE Trilateration integration."""
"""Global fixtures for Bermuda BLE Trilateration integration.""" # fmt: skip
from unittest.mock import patch

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Constants for Bermuda BLE Trilateration tests."""
"""Constants for Bermuda BLE Trilateration tests.""" # fmt: skip
# AJG: We don't use these vars in our flow. TODO: Add some we _do_ use!
# from custom_components.bermuda.const import (
# CONF_PASSWORD,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test Bermuda BLE Trilateration config flow."""
"""Test Bermuda BLE Trilateration config flow.""" # fmt: skip
from unittest.mock import patch

import pytest
Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test Bermuda BLE Trilateration setup process."""
"""Test Bermuda BLE Trilateration setup process.""" # fmt: skip
import pytest
from custom_components.bermuda import (
async_reload_entry,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Test Bermuda BLE Trilateration switch."""
"""Test Bermuda BLE Trilateration switch.""" # fmt: skip
from unittest.mock import call
from unittest.mock import patch

Expand Down