summaryrefslogtreecommitdiff
path: root/src/relay_mqtt_bot.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/relay_mqtt_bot.py')
-rwxr-xr-xsrc/relay_mqtt_bot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/relay_mqtt_bot.py b/src/relay_mqtt_bot.py
index dbae007..2fb9d24 100755
--- a/src/relay_mqtt_bot.py
+++ b/src/relay_mqtt_bot.py
@@ -6,7 +6,7 @@ from typing import Optional, Union
from telegram import ReplyKeyboardMarkup
from functools import partial
-from home.config import config, AppConfigUnit
+from home.config import config, AppConfigUnit, TranslationsUnit
from home.telegram import bot
from home.telegram.config import TelegramBotConfig
from home.mqtt import MqttPayload, MqttNode, MqttWrapper, MqttModule
@@ -26,6 +26,10 @@ mqtt_nodes_config = MqttNodesConfig()
class RelayMqttBotConfig(AppConfigUnit, TelegramBotConfig):
NAME = 'relay_mqtt_bot'
+ def __init__(self):
+ super().__init__()
+ self._mqtt_nodes_strings = TranslationsUnit('mqtt_nodes')
+
@staticmethod
def schema() -> Optional[dict]:
return {