Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Nov 30, 2023
1 parent 724f835 commit 0bd181e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/ramses_rf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- sundial (up to 2 zones)
- chronotherm (CM60xNG can do 4 zones)
- hometronics (16? zones)
- vision pro
"""
from __future__ import annotations

Expand All @@ -16,10 +17,8 @@

from ramses_tx import Address, Command, Message, Packet # noqa: F401

from .const import __dev_mode__
from .device import Device # noqa: F401
from .gateway import Gateway # noqa: F401
from .version import VERSION # noqa: F401

from .const import ( # noqa: F401, isort: skip, pylint: disable=unused-import
I_,
Expand All @@ -33,11 +32,7 @@
from .const import Index, Verb # noqa: F401, pylint: disable=unused-import


DEV_MODE = __dev_mode__ and False

_LOGGER = logging.getLogger(__name__)
if DEV_MODE:
_LOGGER.setLevel(logging.DEBUG)


class GracefulExit(SystemExit):
Expand Down
4 changes: 2 additions & 2 deletions src/ramses_tx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""RAMSES RF - a RAMSES-II protocol decoder & analyser."""
from __future__ import annotations

from logging import Logger
from typing import TYPE_CHECKING

from .address import NUL_DEV_ADDR, NUL_DEVICE_ID, Address, is_valid_dev_id # noqa: F401
Expand All @@ -16,7 +15,6 @@
SZ_ZONE_IDX,
SZ_ZONE_MASK,
SZ_ZONE_TYPE,
__dev_mode__,
)
from .logger import set_logger_timesource, set_pkt_logging # noqa: F401
from .message import Message # noqa: F401
Expand Down Expand Up @@ -62,6 +60,8 @@
)

if TYPE_CHECKING: # mypy TypeVars and similar (e.g. Index, Verb)
from logging import Logger

from .const import Index, Verb # noqa: F401, pylint: disable=unused-import


Expand Down

0 comments on commit 0bd181e

Please sign in to comment.