Skip to content

Commit

Permalink
Prefer __all__ over F401 ignore (#126189)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Sep 18, 2024
1 parent de104b3 commit 0281e95
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions homeassistant/components/axis/hub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Internal functionality not part of HA infrastructure."""

from .api import get_axis_api # noqa: F401
from .hub import AxisHub # noqa: F401
from .api import get_axis_api
from .hub import AxisHub

__all__ = ["AxisHub", "get_axis_api"]
6 changes: 4 additions & 2 deletions homeassistant/components/deconz/hub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Internal functionality not part of HA infrastructure."""

from .api import get_deconz_api # noqa: F401
from .hub import DeconzHub # noqa: F401
from .api import get_deconz_api
from .hub import DeconzHub

__all__ = ["DeconzHub", "get_deconz_api"]
6 changes: 4 additions & 2 deletions homeassistant/components/unifi/hub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""Internal functionality not part of HA infrastructure."""

from .api import get_unifi_api # noqa: F401
from .hub import UnifiHub # noqa: F401
from .api import get_unifi_api
from .hub import UnifiHub

__all__ = ["UnifiHub", "get_unifi_api"]

0 comments on commit 0281e95

Please sign in to comment.