Skip to content

Commit

Permalink
In __init__.py, do not use 'import .const'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 2, 2025
1 parent 685ada1 commit 942d0cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/zha_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
from zigpy import types as t
from zigpy.exceptions import DeliveryError

from . import const as c

Check failure on line 18 in custom_components/zha_toolkit/__init__.py

View workflow job for this annotation

GitHub Actions / pre-commit

W0406: Module import itself (import-self)

Check failure on line 18 in custom_components/zha_toolkit/__init__.py

View workflow job for this annotation

GitHub Actions / pre-commit

E0611: No name 'const' in module 'zha_toolkit' (no-name-in-module)

Check failure on line 18 in custom_components/zha_toolkit/__init__.py

View workflow job for this annotation

GitHub Actions / pre-commit

W0406: Module import itself (import-self)

Check failure on line 18 in custom_components/zha_toolkit/__init__.py

View workflow job for this annotation

GitHub Actions / pre-commit

E0611: No name 'const' in module 'zha_toolkit' (no-name-in-module)
from . import params as PARDEFS
from . import utils as u
from .const import DOMAIN

DOMAIN = c.DOMAIN

DEPENDENCIES = ["zha"]

Expand Down

0 comments on commit 942d0cc

Please sign in to comment.