Skip to content

Commit

Permalink
fix/validate_message_context
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Oct 20, 2023
1 parent 29c0551 commit 5b66854
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from threading import Event

import click
from hivemind_bus_client import HiveMessageBusClient
from hivemind_bus_client.identity import NodeIdentity
from hivemind_ggwave import GGWaveSlave
from ovos_audio.service import PlaybackService
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import init_service_logger, LOG

from hivemind_voice_satellite import VoiceClient
from threading import Event
from hivemind_bus_client.identity import NodeIdentity
from hivemind_ggwave import GGWaveSlave


@click.command(help="connect to HiveMind")
Expand All @@ -17,7 +19,6 @@
@click.option("--selfsigned", help="accept self signed certificates", is_flag=True)
@click.option("--siteid", help="location identifier for message.context", type=str, default="")
def connect(host, key, password, port, selfsigned, siteid):

init_service_logger("HiveMind-voice-sat")

identity = NodeIdentity()
Expand All @@ -43,7 +44,6 @@ def handle_complete(message):
LOG.info(f"will connect to: {host}")
ready.set()


ggwave.bus.on("hm.ggwave.identity_updated",
handle_complete)
ggwave.start()
Expand Down
4 changes: 2 additions & 2 deletions hivemind_voice_satellite/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class VoiceClient(OVOSDinkumVoiceService):
def __init__(self, bus: HiveMessageBusClient, on_ready=on_ready, on_error=on_error,
on_stopping=on_stopping, on_alive=on_alive,
on_started=on_started, watchdog=lambda: None, mic=None):
super().__init__(on_ready, on_error, on_stopping, on_alive, on_started, watchdog, mic)
self.bus = bus
super().__init__(on_ready, on_error, on_stopping, on_alive, on_started, watchdog, mic,
bus=bus, validate_source=False)

def _connect_to_bus(self):
pass
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_version():
'# END_VERSION_BLOCK' in line):
break
version = f"{major}.{minor}.{build}"
if alpha:
if int(alpha) > 0:
version += f"a{alpha}"
return version

Expand Down

0 comments on commit 5b66854

Please sign in to comment.