From 09950d9876db15b07fd8a4b789baf073abf22db2 Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Tue, 2 Apr 2024 08:00:31 -0400 Subject: [PATCH] Remove unused imports --- .../core/DNP3OutstationAgent/tests/test_dnp3_agent.py | 3 --- services/core/DataMover/tests/test_datamover.py | 2 -- services/core/IEEE_2030_5/demo/webgui.py | 2 +- services/core/IEEE_2030_5/ieee_2030_5/agent.py | 10 +++------- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/services/core/DNP3OutstationAgent/tests/test_dnp3_agent.py b/services/core/DNP3OutstationAgent/tests/test_dnp3_agent.py index f7b4fa266b..7e47d7e8ce 100644 --- a/services/core/DNP3OutstationAgent/tests/test_dnp3_agent.py +++ b/services/core/DNP3OutstationAgent/tests/test_dnp3_agent.py @@ -13,11 +13,8 @@ import pytest import os import datetime -# from dnp3_outstation.agent import Dnp3OutstationAgent from services.core.DNP3OutstationAgent.dnp3_outstation_agent.agent import Dnp3Agent as Dnp3OutstationAgent -from dnp3_python.dnp3station.outstation_new import MyOutStationNew import random -import subprocess import logging logging_logger = logging.getLogger(__name__) diff --git a/services/core/DataMover/tests/test_datamover.py b/services/core/DataMover/tests/test_datamover.py index 45ac3dedd7..7ea5157cb4 100644 --- a/services/core/DataMover/tests/test_datamover.py +++ b/services/core/DataMover/tests/test_datamover.py @@ -23,7 +23,6 @@ # }}} import os -import json import random import gevent import pytest @@ -36,7 +35,6 @@ from volttron.platform.messaging import topics from volttron.platform.vip.agent import Agent from volttron.platform.keystore import KnownHostsStore -from volttron.platform.messaging.health import STATUS_GOOD datamover_uuid = None datamover_config = { diff --git a/services/core/IEEE_2030_5/demo/webgui.py b/services/core/IEEE_2030_5/demo/webgui.py index cf9fdbf682..efa53ca785 100644 --- a/services/core/IEEE_2030_5/demo/webgui.py +++ b/services/core/IEEE_2030_5/demo/webgui.py @@ -24,7 +24,7 @@ sys.path.insert(0, str(Path(__file__).absolute().parent.parent.as_posix())) import requests -from nicegui import app, ui +from nicegui import ui import ieee_2030_5.models as m from ieee_2030_5 import dataclass_to_xml, xml_to_dataclass diff --git a/services/core/IEEE_2030_5/ieee_2030_5/agent.py b/services/core/IEEE_2030_5/ieee_2030_5/agent.py index 7bb765c0bf..0b2fac81b7 100644 --- a/services/core/IEEE_2030_5/ieee_2030_5/agent.py +++ b/services/core/IEEE_2030_5/ieee_2030_5/agent.py @@ -23,13 +23,12 @@ # }}} from __future__ import annotations from copy import deepcopy -from dataclasses import dataclass, field, fields +from dataclasses import dataclass, fields import math import logging import sys from datetime import datetime from pathlib import Path -from pprint import pformat from typing import Any, Dict, List import ieee_2030_5.models as m @@ -39,15 +38,12 @@ try: # for modular from volttron import utils - from volttron.client.messaging.health import STATUS_GOOD - from volttron.client.vip.agent import RPC, Agent, Core, PubSub - from volttron.client.vip.agent.subsystems.query import Query + from volttron.client.vip.agent import Agent from volttron.utils.commands import vip_main except ImportError: from volttron.platform.agent import utils from volttron.platform.agent.utils import vip_main - from volttron.platform.vip.agent import RPC, Agent, Core, PubSub - from volttron.platform.vip.agent.subsystems.query import Query + from volttron.platform.vip.agent import Agent # from . import __version__ __version__ = '0.1.0'