ignore helperbot
This commit is contained in:
parent
8d7fd6c759
commit
8abf7e0f02
2 changed files with 6 additions and 3 deletions
|
|
@ -35,6 +35,9 @@ class CommandDto:
|
||||||
self._event.set()
|
self._event.set()
|
||||||
|
|
||||||
|
|
||||||
|
HELPER_BOT_CLIENT_ID = "helperbot@bumper/helperbot"
|
||||||
|
|
||||||
|
|
||||||
class HelperBot:
|
class HelperBot:
|
||||||
"""Helper bot, which converts commands from the rest api to mqtt ones."""
|
"""Helper bot, which converts commands from the rest api to mqtt ones."""
|
||||||
|
|
||||||
|
|
@ -44,9 +47,8 @@ class HelperBot:
|
||||||
)
|
)
|
||||||
self._host = host
|
self._host = host
|
||||||
self._port = port
|
self._port = port
|
||||||
self._client_id = "helperbot@bumper/helperbot"
|
|
||||||
self._timeout = timeout
|
self._timeout = timeout
|
||||||
self._client = Client(self._client_id)
|
self._client = Client(HELPER_BOT_CLIENT_ID)
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
async def _on_message(
|
async def _on_message(
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ from bumper.db import (
|
||||||
client_get,
|
client_get,
|
||||||
client_set_mqtt,
|
client_set_mqtt,
|
||||||
)
|
)
|
||||||
|
from bumper.mqtt.helper_bot import HELPER_BOT_CLIENT_ID
|
||||||
from bumper.mqtt.proxy import ProxyClient
|
from bumper.mqtt.proxy import ProxyClient
|
||||||
from bumper.util import get_logger
|
from bumper.util import get_logger
|
||||||
|
|
||||||
|
|
@ -282,7 +283,7 @@ class BumperMQTTServerPlugin:
|
||||||
proxymodelog.info(
|
proxymodelog.info(
|
||||||
f"MQTT Proxy Mode - New MQTT Topic Subscription - Client: {client_id} - Topic: {topic}"
|
f"MQTT Proxy Mode - New MQTT Topic Subscription - Client: {client_id} - Topic: {topic}"
|
||||||
)
|
)
|
||||||
else:
|
elif client_id != HELPER_BOT_CLIENT_ID:
|
||||||
proxymodelog.warning(
|
proxymodelog.warning(
|
||||||
f"MQTT Proxy Mode - No proxy client found! - Client: {client_id} - Topic: {topic}"
|
f"MQTT Proxy Mode - No proxy client found! - Client: {client_id} - Topic: {topic}"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue