Linting
All checks were successful
Lint / lint (pull_request) Successful in 6s

This commit is contained in:
Logan Cusano
2025-06-29 15:53:15 -04:00
parent fb9f8a680f
commit ddfa9fc2a3
4 changed files with 16 additions and 17 deletions

View File

@@ -3,10 +3,9 @@ import subprocess
import os
import signal
import json
from models import ConfigGenerator, DecodeMode, ChannelConfig, DeviceConfig, TrunkingConfig, TrunkingChannelConfig, AudioConfig, TerminalConfig, TalkgroupTag
from models import ConfigGenerator, DecodeMode, ChannelConfig, DeviceConfig, TrunkingConfig, TrunkingChannelConfig, AudioConfig, TerminalConfig
from internal.logger import create_logger
from internal.bot_manager import DiscordBotManager
from typing import List
from internal.op25_config_utls import save_talkgroup_tags, save_whitelist, del_none_in_dict, get_current_system_from_config
LOGGER = create_logger(__name__)
@@ -119,10 +118,9 @@ def create_op25_router(bot_manager: DiscordBotManager):
async def update_prensece():
current_system = get_current_system_from_config()
if not current_system:
raise HTTPException(status_code=500, detail="Unable to get current system.")
raise HTTPException(status_code=500, detail="Unable to get current system.")
await bot_manager.set_presence(current_system)
return current_system
return router
return router