Skip to content

Commit

Permalink
Remove unused imports (#3018)
Browse files Browse the repository at this point in the history
* Fix VOLTTRON_HOME substitution

* Remove unused imports

Co-authored-by: Chandrika <schandrika@users.noreply.github.com>
Co-authored-by: Craig <3979063+craig8@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 29, 2022
1 parent 428e8ea commit 0caa70e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions volttron/platform/web/admin_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from volttron.platform.jsonrpc import RemoteError

try:
from jinja2 import Environment, FileSystemLoader, select_autoescape, TemplateNotFound
from jinja2 import FileSystemLoader, select_autoescape, TemplateNotFound
except ImportError:
logging.getLogger().warning("Missing jinja2 library in admin_endpoints.py")

Expand All @@ -59,7 +59,6 @@

from volttron.platform import get_home
from volttron.platform import jsonapi
from volttron.platform.auth.certs import Certs
from volttron.utils import VolttronHomeFileReloader
from volttron.utils.persistance import PersistentDict

Expand Down
2 changes: 1 addition & 1 deletion volttron/platform/web/authenticate_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json

import jwt
from jinja2 import Environment, FileSystemLoader, select_autoescape, TemplateNotFound
from jinja2 import Environment, FileSystemLoader, select_autoescape
from passlib.hash import argon2
from watchdog_gevent import Observer

Expand Down
5 changes: 2 additions & 3 deletions volttron/platform/web/platform_web_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
from .authenticate_endpoint import AuthenticateEndpoints
from .csr_endpoints import CSREndpoints
from .webapp import WebApplicationWrapper
from volttron.platform.agent import utils
from volttron.platform.agent.known_identities import \
CONTROL, VOLTTRON_CENTRAL, AUTH
from ..agent.utils import get_fq_identity
Expand All @@ -71,15 +70,15 @@
from volttron.platform.auth.certs import Certs, CertWrapper
from ..jsonrpc import (json_result,
json_validate_request,
INVALID_REQUEST, METHOD_NOT_FOUND,
INVALID_REQUEST,
UNHANDLED_EXCEPTION, UNAUTHORIZED,
UNAVAILABLE_PLATFORM, INVALID_PARAMS,
UNAVAILABLE_AGENT, INTERNAL_ERROR, RemoteError)

from ..vip.agent import Agent, Core, RPC, Unreachable
from ..vip.agent.subsystems import query
from ..vip.socket import encode_key
from ...platform import jsonapi, jsonrpc, get_platform_config
from ...platform import jsonapi, jsonrpc
from ...platform.aip import AIPplatform
from ...utils import is_ip_private
from ...utils.rmq_config_params import RMQConfig
Expand Down
1 change: 0 additions & 1 deletion volttron/platform/web/topic_tree.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO: Add treelib to requirements.
from copy import deepcopy
from typing import Union, Iterable
from treelib import Tree, Node
from treelib.exceptions import DuplicatedNodeIdError, NodeIDAbsentError
Expand Down
3 changes: 1 addition & 2 deletions volttron/platform/web/vui_pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from weakref import WeakValueDictionary
from collections import defaultdict

from volttron.platform.web.websocket import VolttronWebSocket
from ws4py.server.geventserver import WebSocketWSGIApplication
from ws4py.websocket import WebSocket, EchoWebSocket
from ws4py.websocket import WebSocket
import logging

_log = logging.getLogger()
Expand Down

0 comments on commit 0caa70e

Please sign in to comment.