diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-12-18 05:35:54 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-12-18 05:35:54 +0300 |
commit | 5f34b77581355ed2e0f03a6eb7607e4c6d508e7e (patch) | |
tree | aab9c635d8a5336fb732bdd3f3237fe6d21392f5 | |
parent | 9c5da6f50b850596cca867c1cca0dae17750dc1c (diff) |
pump_bot: rename modules, make it clear it works locally on sunxi h3 board
-rwxr-xr-x | src/gpiorelayd.py | 2 | ||||
-rw-r--r-- | src/home/relay/__init__.py | 4 | ||||
-rw-r--r-- | src/home/relay/__init__.pyi | 4 | ||||
-rw-r--r-- | src/home/relay/sunxi_h3_client.py (renamed from src/home/relay/client.py) | 0 | ||||
-rw-r--r-- | src/home/relay/sunxi_h3_server.py (renamed from src/home/relay/server.py) | 0 | ||||
-rwxr-xr-x | src/pump_bot.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/gpiorelayd.py b/src/gpiorelayd.py index f39a86a..cd2941f 100755 --- a/src/gpiorelayd.py +++ b/src/gpiorelayd.py @@ -5,7 +5,7 @@ import sys from home.config import config from home.util import parse_addr -from home.relay.server import RelayServer +from home.relay.sunxi_h3_server import RelayServer logger = logging.getLogger(__name__) diff --git a/src/home/relay/__init__.py b/src/home/relay/__init__.py index f1568be..406403d 100644 --- a/src/home/relay/__init__.py +++ b/src/home/relay/__init__.py @@ -5,8 +5,8 @@ __all__ = ['RelayClient', 'RelayServer'] def __getattr__(name): _map = { - 'RelayClient': '.client', - 'RelayServer': '.server' + 'RelayClient': '.sunxi_h3_client', + 'RelayServer': '.sunxi_h3_server' } if name in __all__: diff --git a/src/home/relay/__init__.pyi b/src/home/relay/__init__.pyi index 94341f6..7a4a2f4 100644 --- a/src/home/relay/__init__.pyi +++ b/src/home/relay/__init__.pyi @@ -1,2 +1,2 @@ -from .client import RelayClient as RelayClient -from .server import RelayServer as RelayServer +from .sunxi_h3_client import RelayClient as RelayClient +from .sunxi_h3_server import RelayServer as RelayServer diff --git a/src/home/relay/client.py b/src/home/relay/sunxi_h3_client.py index 8c8d6c4..8c8d6c4 100644 --- a/src/home/relay/client.py +++ b/src/home/relay/sunxi_h3_client.py diff --git a/src/home/relay/server.py b/src/home/relay/sunxi_h3_server.py index 1f33969..1f33969 100644 --- a/src/home/relay/server.py +++ b/src/home/relay/sunxi_h3_server.py diff --git a/src/pump_bot.py b/src/pump_bot.py index bf791d3..de925db 100755 --- a/src/pump_bot.py +++ b/src/pump_bot.py @@ -6,7 +6,7 @@ from telegram import ReplyKeyboardMarkup, User from home.config import config from home.telegram import bot from home.telegram._botutil import user_any_name -from home.relay import RelayClient +from home.relay.sunxi_h3_client import RelayClient from home.api.types import BotType config.load('pump_bot') |