Skip to content
Closed
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
2 changes: 2 additions & 0 deletions custom_components/pettracer/device_tracker.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
"""Support for PetTracer device tracking."""

from __future__ import annotations

from typing import Any

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two blank lines between imports? PEP 8 says one blank line to separate import groups. Two blank lines are for separating top-level definitions. This isn't even wrong in an interesting way — it's just unnecessary whitespace. Fix it.



from homeassistant.components.device_tracker import SourceType
from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.update_coordinator import CoordinatorEntity

from .const import DOMAIN
from .utils import battery_mv_to_percentage

Check failure on line 17 in custom_components/pettracer/device_tracker.py

View workflow job for this annotation

GitHub Actions / Lint and Type Check

ruff (I001)

custom_components/pettracer/device_tracker.py:3:1: I001 Import block is un-sorted or un-formatted help: Organize imports


async def async_setup_entry(
Expand Down
Loading